aboutsummaryrefslogtreecommitdiffstats
path: root/main/soxr
diff options
context:
space:
mode:
authordai9ah <dai9ah@protonmail.com>2018-02-26 11:17:43 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-05 23:24:41 +0000
commitbd1e588516b31731dfd2e0ce99583888f4fc0421 (patch)
tree48341ba3a68c9ec4cad808ffaf629a03afca3891 /main/soxr
parentb004237cafef313deb0ba07c4f65983f10205926 (diff)
downloadaports-bd1e588516b31731dfd2e0ce99583888f4fc0421.tar.bz2
aports-bd1e588516b31731dfd2e0ce99583888f4fc0421.tar.xz
main/soxr: add check function, split docs properly
Diffstat (limited to 'main/soxr')
-rw-r--r--main/soxr/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/soxr/APKBUILD b/main/soxr/APKBUILD
index dbc0d91ee2..f53028e845 100644
--- a/main/soxr/APKBUILD
+++ b/main/soxr/APKBUILD
@@ -11,7 +11,7 @@ depends=""
depends_dev="cmake"
makedepends="$depends_dev"
install=""
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.xz::https://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver-Source.tar.xz/download"
_builddir="$srcdir/$pkgname-$pkgver-Source"
@@ -21,6 +21,10 @@ build() {
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_TESTS=ON
make
+}
+
+check() {
+ cd "$_builddir"
make test
}
@@ -29,4 +33,9 @@ package() {
make DESTDIR="$pkgdir" install
}
+doc() {
+ mkdir -p "$subpkgdir/usr"
+ mv "$pkgdir/usr/share" "$subpkgdir/usr/share"
+}
+
sha512sums="f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8 soxr-0.1.3.tar.xz"