summaryrefslogtreecommitdiff
path: root/system/rhash/APKBUILD
blob: 5438b35cda5358be3e773b1a519807283e87bfbf (plain) (blame)
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
# Contributor: Przemyslaw Pawelczyk <przemoc@zoho.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=rhash
pkgver=1.4.2
pkgrel=0
pkgdesc="Utility for calculation and verification of hash sums and magnet links"
url="http://rhash.sourceforge.net/"
arch="all"
license="MIT"
depends=""
makedepends="openssl-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz"
builddir="$srcdir/RHash-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-lib-shared \
		--disable-lib-static \
		--enable-openssl
	make
}

check() {
	make test
}

package() {
	make -j1 DESTDIR="$pkgdir" install install-gmo install-lib-headers install-lib-so-link install-man
}

sha512sums="41df57e8b3f32c93d8e6f2ac668b32aaa23eb2eaf90a83f109e61e511404a5036ea88bcf2854e19c1ade0f61960e0d9edf01f3d82e1c645fed36579e9d7a6a25  rhash-1.4.2.tar.gz"