summaryrefslogtreecommitdiff
path: root/community/hashcash/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/hashcash/PKGBUILD')
-rw-r--r--community/hashcash/PKGBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/community/hashcash/PKGBUILD b/community/hashcash/PKGBUILD
index d171ada31..48c947104 100644
--- a/community/hashcash/PKGBUILD
+++ b/community/hashcash/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 65554 2012-02-21 08:54:32Z spupykin $
+# $Id: PKGBUILD 112227 2014-05-30 11:05:15Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
pkgname=hashcash
pkgver=1.22
-pkgrel=3
+pkgrel=4
pkgdesc="a denial-of-service counter measure tool for email/spam."
arch=('i686' 'x86_64')
url="http://www.hashcash.org"
@@ -16,10 +16,14 @@ md5sums=('31fae207061841dffc7b90ee18e3d0fa')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
if [ "${CARCH}" = "x86_64" ]; then
- make generic-openssl
+ make generic-openssl LIBCRYPTO=-lcrypto
else
- make x86-openssl
+ 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