aboutsummaryrefslogtreecommitdiffstats
path: root/main/libsamplerate
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 23:39:49 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 18:18:04 +0000
commit2a4f50ffc4c012454511da93afe7e7a4f7fdb69d (patch)
tree34ae84b946ab57ff518541e7ed0339dd643e5f95 /main/libsamplerate
parent7eb2d5015747cf02f8f9163985ab28b7207acdf9 (diff)
downloadaports-2a4f50ffc4c012454511da93afe7e7a4f7fdb69d.tar.bz2
aports-2a4f50ffc4c012454511da93afe7e7a4f7fdb69d.tar.xz
main/libsamplerate: modernise, add check, -doc, license
Diffstat (limited to 'main/libsamplerate')
-rw-r--r--main/libsamplerate/APKBUILD34
1 files changed, 18 insertions, 16 deletions
diff --git a/main/libsamplerate/APKBUILD b/main/libsamplerate/APKBUILD
index 69d25fdc83..f3b263f738 100644
--- a/main/libsamplerate/APKBUILD
+++ b/main/libsamplerate/APKBUILD
@@ -1,36 +1,38 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsamplerate
pkgver=0.1.9
-pkgrel=0
+pkgrel=1
pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio"
url="http://www.mega-nerd.com/SRC/index.html"
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-doc"
arch="all"
-license="GPL"
+license="BSD-2-Clause-NetBSD"
depends=""
+makedepends="fftw-dev libsndfile-dev"
source="http://www.mega-nerd.com/SRC/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
-
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
-build () {
- cd "$_builddir"
+build() {
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="2b78ae9fe63b36b9fbb6267fad93f259 libsamplerate-0.1.9.tar.gz"
-sha256sums="0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1 libsamplerate-0.1.9.tar.gz"
sha512sums="78596657963cbf06785e3e6e1190b093df71da52ca340e75bd8246a962cd79dd1c90fa5527c607cebcb296e2c1ee605015278b274e3b768f2f3fbeb0eadfb728 libsamplerate-0.1.9.tar.gz"