aboutsummaryrefslogtreecommitdiffstats
path: root/community/hashcash/APKBUILD
blob: 4e28ef2a8d1920c4e3b7cc60d8666ff771584df3 (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
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=hashcash
pkgver=1.22
pkgrel=0
pkgdesc="Proof-of-work algorithm for denial-of-service counter measures"
url="http://www.hashcash.org/"
arch="all"
license="Public-Domain"
subpackages="$pkgname-doc"
source="http://www.hashcash.org/source/hashcash-$pkgver.tgz"
builddir="$srcdir/hashcash-$pkgver"

build() {
	make
}

check() {
	./test.sh
}

package() {
	make \
		INSTALL_PATH="$pkgdir/usr/bin" \
		MAN_INSTALL_PATH="$pkgdir/usr/share/man/man1" \
		DOC_INSTALL_PATH="$pkgdir/usr/share/doc/hashcash" \
		install
}

sha512sums="
b803c27df2acdce70c587d15d4158ca8841328fd89d90213a00be35f7c9f1905db728a785ee70fa43a4262dabe20c3f0a9fff381e3db0d44c3175ca22da5d5c2  hashcash-1.22.tgz
"