46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Template file for 'libgsm'
|
|
pkgname=libgsm
|
|
version=1.0.19
|
|
revision=1
|
|
wrksrc="gsm-${version%.*}-pl${version##*.}"
|
|
short_desc="GSM 06.10 lossy speech compression"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="TU-Berlin-2.0"
|
|
homepage="http://www.quut.com/gsm/"
|
|
distfiles="http://www.quut.com/gsm/gsm-${version}.tar.gz"
|
|
checksum=4903652f68a8c04d0041f0d19b1eb713ddcd2aa011c5e595b3b8bca2755270f6
|
|
|
|
do_build() {
|
|
make CC=$CC LD=$CC AR=$AR CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1"
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/lib
|
|
vmkdir usr/include/gsm
|
|
vmkdir usr/share/man/man3
|
|
vmkdir usr/share/man/man1
|
|
|
|
make INSTALL_ROOT="${DESTDIR}"/usr \
|
|
GSM_INSTALL_INC="${DESTDIR}"/usr/include/gsm \
|
|
GSM_INSTALL_MAN="${DESTDIR}"/usr/share/man/man3 \
|
|
TOAST_INSTALL_MAN="${DESTDIR}"/usr/share/man/man1 \
|
|
install
|
|
|
|
vcopy "lib/libgsm.so*" usr/lib
|
|
|
|
ln -sfr ${DESTDIR}/usr/include/gsm/gsm.h ${DESTDIR}/usr/include/gsm.h
|
|
|
|
vlicense COPYRIGHT
|
|
}
|
|
|
|
libgsm-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|