### this file is sourced not run
PKGVER=1.0.18
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=gsm-$PKGVER.tar.gz
MD5SUM=2dae29a6c18916613a9b31d49a0e9d4d
SRC_URL=http://www.quut.com/gsm/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libgsm: libgsm $PKGVER (GSM 06.10 Codec)"'
libgsm:  
libgsm: This is the codec used by GSM phones; they are sometimes found in 
libgsm: recordings made by these phones.  
libgsm: 
libgsm: 
libgsm: 
libgsm: 
libgsm: 
libgsm: 
libgsm: 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/gsm*
	sed -i -e 's|/man/man1|/share&|' Makefile
	mkdir -p /usr/include/gsm
	BUILDFLAGS="\
		INSTALL_ROOT=/usr \
		GSM_INSTALL_LIB=/usr/$LIBDIR \
		GSM_INSTALL_INC=/usr/include/gsm \
		GSM_INSTALL_MAN=/usr/share/man/man3"
	make $MAKEFLAGS CCFLAGS="-c -Os -fPIC -DNeedFunctionPrototypes=1" $BUILDFLAGS &&
	make $BUILDFLAGS install &&
	pkg_build_slackdesc
}



