diff options
author | prspkt <prspkt@protonmail.com> | 2018-03-15 09:38:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-26 19:09:11 +0000 |
commit | e9683d537d744d14ad7dfde6f1b39370705e831f (patch) | |
tree | ade52e5bbce8ff2dfc5c30ecc9b6ca769d98c863 /main/rhash | |
parent | cf73b1506002d7d10c6c846278e9f2871e083986 (diff) | |
download | aports-e9683d537d744d14ad7dfde6f1b39370705e831f.tar.bz2 aports-e9683d537d744d14ad7dfde6f1b39370705e831f.tar.xz |
main/rhash: upgrade to 1.3.6
Diffstat (limited to 'main/rhash')
-rw-r--r-- | main/rhash/APKBUILD | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/main/rhash/APKBUILD b/main/rhash/APKBUILD index e8fed11a26..58ef79e241 100644 --- a/main/rhash/APKBUILD +++ b/main/rhash/APKBUILD @@ -1,34 +1,40 @@ # Maintainer: Przemyslaw Pawelczyk <przemoc@zoho.com> pkgname=rhash -pkgver=1.3.5 -pkgrel=1 +pkgver=1.3.6 +pkgrel=0 pkgdesc="Utility for calculation and verification of hash sums and magnet links" -url="http://rhash.anz.ru/" +url="http://rhash.anz.ru" arch="all" license="custom" +makedepends="libressl-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-libs" -source="$pkgname-$pkgver.tar.gz::http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz" builddir="$srcdir/RHash-$pkgver" +prepare() { + # include endian.h on musl + sed -i "$builddir"/librhash/byte_order.h \ + -e 's/__GLIBC__/__linux__/' +} + build() { cd "$builddir" - make build-shared - make -C librhash + ./configure --prefix=/usr \ + --enable-openssl \ + --disable-openssl-runtime + make } check() { - cd "$builddir" - make test-shared + make -C "$builddir" test-shared } package() { cd "$builddir" - # binaries - make PREFIX=/usr DESTDIR="$pkgdir" install-shared - - # library - make -C librhash PREFIX=/usr DESTDIR="$pkgdir" install-headers install-lib-shared install-so-link + make DESTDIR="$pkgdir" install + make -C librhash DESTDIR="$pkgdir" \ + install-headers install-lib-shared install-so-link } -sha512sums="e8450aab0c16bfb975bf4aeee218740fb4d86d5514e426b70c3edb84e4d63865cd4051939aa95c24a87a78baaedc49e40bb509b2610e89ca3745930808b3ef6c rhash-1.3.5.tar.gz" +sha512sums="54f7f238ed1fdc01c29cc1338fa86be90b69beff0df8f20d24ce9cb3c48c7f4668b84a3fe0d4d8b04b54bc8145485d493435edf3219de3a637af0f9c007c85c6 rhash-1.3.6-src.tar.gz" |