diff options
Diffstat (limited to 'community/hashcash/PKGBUILD')
-rw-r--r-- | community/hashcash/PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/hashcash/PKGBUILD b/community/hashcash/PKGBUILD new file mode 100644 index 000000000..1d22902b3 --- /dev/null +++ b/community/hashcash/PKGBUILD @@ -0,0 +1,24 @@ +# $Id: PKGBUILD 5144 2009-11-07 00:41:40Z ibiru $ +# Maintainer: Charles Mauch <cmauch@gmail.com> + +pkgname=hashcash +pkgver=1.22 +pkgrel=2 +pkgdesc="Hashcash is a denial-of-service counter measure tool for email/spam." +arch=('i686' 'x86_64') +url="http://www.hashcash.org" +license=('GPL') +depends=( 'glibc' ) +source=(http://www.hashcash.org/source/${pkgname}-${pkgver}.tgz) +md5sums=(31fae207061841dffc7b90ee18e3d0fa) + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + if [ "${CARCH}" = "x86_64" ]; then + make generic-openssl || return 1 + else make x86-openssl || return 1 + fi + 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 +} |