void-packages/srcpkgs/libgsm/template
Juan RP c6801d83bd libgdm: manually specify shlib via shlib_provides.
xbps-src ignores unversioned shlibs currently.
2015-01-15 10:23:40 +01:00

39 lines
1 KiB
Text

# Template file for 'libgsm'
pkgname=libgsm
version=1.0.13
wrksrc="gsm-1.0-pl13"
revision=12
homepage="http://www.quut.com/gsm/"
distfiles="http://www.mangler.org/downloads/${pkgname}-${version}.tar.gz"
short_desc="GSM 06.10 lossy speech compression"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
checksum=52c518244d428c2e56c543b98c9135f4a76ff780c32455580b793f60a0a092ad
shlib_provides="libgsm.so"
do_build() {
make CC=$CC CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1" ${makejobs}
}
do_install() {
vmkdir usr/include/gsm
vmkdir usr/lib
vmkdir usr/bin
install -m755 bin/* ${DESTDIR}/usr/bin
install -m755 lib/*.so ${DESTDIR}/usr/lib
install -m644 lib/*.a ${DESTDIR}/usr/lib
install -m644 inc/* ${DESTDIR}/usr/include/gsm
rm -f ${DESTDIR}/usr/include/gsm/*.orig
ln -sfr ${DESTDIR}/usr/include/gsm/gsm.h ${DESTDIR}/usr/include/gsm.h
}
libgsm-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}