aboutsummaryrefslogtreecommitdiffstats
path: root/main/rhash/APKBUILD
blob: 3bc3bed0435abd2871a015aa2a6ae5ac94e3e2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Przemyslaw Pawelczyk <przemoc@zoho.com>
pkgname=rhash
pkgver=1.3.8
pkgrel=0
pkgdesc="Utility for calculation and verification of hash sums and magnet links"
url="http://rhash.anz.ru"
arch="all"
license="custom"
makedepends="openssl-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz
	byteorder.patch"
builddir="$srcdir/RHash-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--enable-openssl \
		--disable-openssl-runtime
	make
}

check() {
	make -C "$builddir" test-shared
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install
	make DESTDIR="$pkgdir" \
		install-lib-headers install-lib-shared install-lib-so-link
}

sha512sums="9dba4fa4dd49d323f2e440c5b93eac1ef62eb4046ec4ef611f0978c12c1739002f1ac1f1ec5e61bd359dc89e9ed612db71be91a795184ac5d5433280d27fa4c1  rhash-1.3.8-src.tar.gz
a216a7cf5e1ea5fcb7b574a57bb8137e3dc0251bdefb2c30aacba08c54079d61a595c8c5636687c70e14724efa3a4b9ca7d9f98d9170eaa66ccb278834cf56d5  byteorder.patch"