vp-build/srcpkgs/libdvbpsi/template

29 lines
875 B
Bash

# Template file for 'libdvbpsi'
pkgname=libdvbpsi
version=1.1.2
revision=4
build_style=gnu-configure
short_desc="PSI decoder and generator library for MPEG2 and DVB streams"
homepage="http://www.videolan.org/developers/libdvbpsi.html"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://download.videolan.org/pub/libdvbpsi/${version}/${pkgname}-${version}.tar.bz2"
checksum=22436366beaa1bff27b3f6d80e43de1012b16d3b63b1e22d37d4a6fcb5db8933
CFLAGS="-Wno-error=cast-qual"
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
# Disable error for gcc6 warning -Wmisleading-indentation
CFLAGS+=" -Wno-error=misleading-indentation"
fi
libdvbpsi-devel_package() {
depends="libdvbpsi>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}