diff options
Diffstat (limited to 'main/libresample')
-rw-r--r-- | main/libresample/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/libresample/APKBUILD b/main/libresample/APKBUILD new file mode 100644 index 000000000..f45036781 --- /dev/null +++ b/main/libresample/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: +# Maintainer: +pkgname=libresample +pkgver=0.1.3 +pkgrel=0 +pkgdesc="real-time library for sampling rate conversion" +url="https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html" +license="GPL" +depends= +makedepends="wget" +install= +subpackages= +source="https://ccrma.stanford.edu/~jos/gz/libresample-$pkgver.tgz" + +# append extra dependencies to -dev subpackage +# remove if not used. +# depends_dev="somepackage-dev" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$_builddir" + install -d "$pkgdir"/usr/include "$pkgdir"/usr/lib + install -m644 include/libresample.h "$pkgdir"/usr/include/ + install -m644 libresample.a "$pkgdir"/usr/lib/ + +} + +md5sums="99bc5ea15ef76b83e5655a10968f674b libresample-0.1.3.tgz" |