summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-13 09:50:24 +0100
committerErich Eckner <git@eckner.net>2018-03-13 09:50:24 +0100
commit91378393b6592032ea92f78545696a0d79cbca1b (patch)
tree65947eeab3a310a34ebeaaaa4a89ff627d5fc255
parent1f51aedec8f68097b60b1eb797321d95bfa4d39c (diff)
downloadarchlinuxewe-91378393b6592032ea92f78545696a0d79cbca1b.tar.xz
hashcash neu
-rw-r--r--hashcash/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/hashcash/PKGBUILD b/hashcash/PKGBUILD
new file mode 100644
index 000000000..d126f132b
--- /dev/null
+++ b/hashcash/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Charles Mauch <cmauch@gmail.com>
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=hashcash
+pkgver=1.22
+pkgrel=5
+pkgdesc="a denial-of-service counter measure tool for email/spam."
+arch=('x86_64')
+url="http://www.hashcash.org"
+license=('GPL')
+depends=( 'glibc' )
+source=(http://www.hashcash.org/source/${pkgname}-${pkgver}.tgz)
+sha512sums=('b803c27df2acdce70c587d15d4158ca8841328fd89d90213a00be35f7c9f1905db728a785ee70fa43a4262dabe20c3f0a9fff381e3db0d44c3175ca22da5d5c2')
+
+build() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+ if [ "${CARCH}" = "x86_64" ]; then
+ make generic-openssl LIBCRYPTO=-lcrypto
+ else
+ make x86-openssl LIBCRYPTO=-lcrypto
+ fi
+}
+
+package() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+ install -Dm755 hashcash "$pkgdir"/usr/bin/hashcash
+ install -Dm755 sha1 "$pkgdir"/usr/bin/sha1
+ install -Dm755 hashcash.1 "$pkgdir"/usr/share/man/man1/hashcash.1
+}