void-packages/srcpkgs/libgsm/template

51 lines
1.2 KiB
Text
Raw Normal View History

2011-10-26 22:26:34 +00:00
# Template file for 'libgsm'
pkgname=libgsm
version=1.0.13
wrksrc=gsm-1.0-pl13
revision=7
2011-10-26 22:26:34 +00:00
homepage="http://www.quut.com/gsm/"
2012-05-23 09:36:53 +00:00
distfiles="http://www.mangler.org/downloads/${pkgname}-${version}.tar.gz"
2011-10-26 22:26:34 +00:00
short_desc="GSM 06.10 lossy speech compression"
maintainer="davehome <davehome@redthumb.info.tm>"
license="BSD-style"
checksum=52c518244d428c2e56c543b98c9135f4a76ff780c32455580b793f60a0a092ad
long_desc="
GSM (Global System for Mobile communications) is a cellular phone system
standard popular outside the USA.
GSM includes a codec, often just referred to as the GSM when discussing
codecs."
do_build() {
2011-10-26 22:26:34 +00:00
make ${makejobs}
}
do_install() {
vmkdir usr/include/gsm
2011-10-26 22:34:04 +00:00
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
2013-04-16 08:30:46 +00:00
ln -sfr ${DESTDIR}/usr/include/gsm/gsm.h ${DESTDIR}/usr/include/gsm.h
}
libgsm-devel_package() {
depends="libgsm>=${version}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}
libgsm_package() {
pkg_install() {
vmove usr
}
2011-10-26 22:26:34 +00:00
}