-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
51 lines (45 loc) · 1.24 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Template file for 'libbluray'
pkgname=libbluray
version=1.3.4
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-optimizations"
hostmakedepends="pkg-config"
makedepends="libxml2-devel fontconfig-devel"
short_desc="Library to access Blu-Ray disks for video playback"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://www.videolan.org/developers/libbluray.html"
changelog="https://code.videolan.org/videolan/libbluray/-/raw/master/ChangeLog"
distfiles="${VIDEOLAN_SITE}/libbluray/${version}/libbluray-${version}.tar.bz2"
checksum=478ffd68a0f5dde8ef6ca989b7f035b5a0a22c599142e5cd3ff7b03bbebe5f2b
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|arm*|aarch64*|ppc64*)
hostmakedepends+=" apache-ant openjdk8"
;;
*) configure_args+=" --disable-bdjava-jar";;
esac
pre_build() {
. /etc/profile.d/jdk.sh
}
pre_check() {
. /etc/profile.d/jdk.sh
}
pre_install() {
. /etc/profile.d/jdk.sh
}
libbluray-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libbluray-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}