# Compiling Time: 0.01 SBU # Maintainer: voroskoi pkgname=gsm pkgver=1.0.19 pkgrel=1 pkgdesc="Gsm is an implementation of the final draft GSM 06.10 standard for full-rate speech transcoding." url="http://www.quut.com/gsm" depends=('glibc>=2.28-6') archs=("x86_64") groups=('multimedia') up2date="lynx -dump $url |Flasttar" source=($url/$pkgname-$pkgver.tar.gz) sha1sums=('3ea15bf487593b589bec1b8d08b25e66c8a125f9') options=('nolto') build() { unset MAKEFLAGS Fmkdir /usr/{bin,include/gsm,lib,share/man/man{1,3}} Fcd $pkgname-1.0-pl19 CFLAGS="$CFLAGS -fPIC" Fsed '-O2' "$CFLAGS" Makefile Fmake Fexec make INSTALL_ROOT=$Fdestdir/$Fprefix \ GSM_INSTALL_INC=$Fdestdir/$Fprefix/include/gsm \ TOAST_INSTALL_MAN=$Fdestdir/$Fprefix/share/man/man1 \ GSM_INSTALL_MAN=$Fdestdir/$Fprefix/share/man/man3 install || Fdie ## weird .. FIXME need PATCH Fexec cd $Fdestdir/usr/lib Fexec ld --whole-archive -shared -o libgsm.so.1 libgsm.a Fexec ln -s libgsm.so.1 libgsm.so } # optimization OK