void-packages/srcpkgs/libbluray/template
2020-05-19 12:20:55 -05:00

39 lines
1.1 KiB
Bash

# Template file for 'libbluray'
pkgname=libbluray
version=1.2.0
revision=2
build_style=gnu-configure
configure_args="--disable-static --disable-optimizations"
hostmakedepends="pkg-config apache-ant openjdk8"
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"
distfiles="https://download.videolan.org/pub/videolan/libbluray/${version}/libbluray-${version}.tar.bz2"
checksum=cd41ea06fd2512a77ebf63872873641908ef81ce2fe4e4c842f6035a47696c11
pre_build() {
export JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"
}
pre_install() {
export JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"
}
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
}
}