void-packages/srcpkgs/libdvbpsi/template
Juergen Buchmueller d0cebb9797 libdvbpsi: typo
2016-09-12 20:57:55 +02:00

29 lines
925 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"
_gccver=$(gcc --version|awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -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"
}
}