aboutsummaryrefslogtreecommitdiffstats
path: root/main/rhash/APKBUILD
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-04-12 20:21:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-13 10:21:02 +0000
commitdafa94cbe2c828116b88611c32148c379d95e2d2 (patch)
tree0b5b3ab7534dddcee2266693b104fa9404cee0a3 /main/rhash/APKBUILD
parentc68ee6d892b60cd77149f5bdbf3041c35f294e30 (diff)
downloadaports-dafa94cbe2c828116b88611c32148c379d95e2d2.tar.bz2
aports-dafa94cbe2c828116b88611c32148c379d95e2d2.tar.xz
main/rhash: Use shared library, add -dev package and add check
Diffstat (limited to 'main/rhash/APKBUILD')
-rw-r--r--main/rhash/APKBUILD19
1 files changed, 15 insertions, 4 deletions
diff --git a/main/rhash/APKBUILD b/main/rhash/APKBUILD
index 8eb99c7518..3156388b5d 100644
--- a/main/rhash/APKBUILD
+++ b/main/rhash/APKBUILD
@@ -1,24 +1,35 @@
# Maintainer: Przemyslaw Pawelczyk <przemoc@zoho.com>
pkgname=rhash
pkgver=1.3.4
-pkgrel=1
+pkgrel=2
pkgdesc="Utility for calculation and verification of hash sums and magnet links"
url="http://rhash.anz.ru/"
arch="all"
license="custom"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz
librhash-byte_order.h-Consult-also-compiler-s-predef.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
- make
+ make build-shared
+ make -C librhash
+}
+
+check() {
+ cd "$builddir"
+ make test-shared
}
package() {
cd "$builddir"
- make install DESTDIR="$pkgdir" PREFIX=/usr
+
+ # binaries
+ make PREFIX=/usr DESTDIR="$pkgdir" install-shared
+
+ # library
+ make -C librhash PREFIX=/usr DESTDIR="$pkgdir" install-headers install-lib-shared install-lib-static
}
md5sums="0b51010604659e9e99f6307b053ba13b rhash-1.3.4.tar.gz