# Maintainer: Clarence _pkgname=spandsp pkgname=${_pkgname}-fs pkgver=3.0.0.r513.67d2455 pkgrel=1 pkgdesc="A DSP library for telephony (FreeSWITCH version)" arch=('x86_64') depends=('libtiff') provides=('spandsp') conflicts=('spandsp') url="https://github.com/freeswitch/spandsp" license=('LGPL' 'GPL') source=("git+https://github.com/freeswitch/$_pkgname") sha256sums=('SKIP') pkgver() { cd "$_pkgname" printf "%s.r%s.%s" "$(awk '/^Version:/ { print $2 }' spandsp.spec)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$_pkgname" ./autogen.sh ./configure --prefix=/usr --disable-static make -C src } package() { cd "$_pkgname" make DESTDIR="$pkgdir" -C src install make DESTDIR="$pkgdir" install-pkgconfigDATA }