summaryrefslogtreecommitdiff
path: root/community/hashcash/PKGBUILD
blob: 431c036270f4399c9a00d76676b7bd9ee4f19e8c (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
# $Id: PKGBUILD 65554 2012-02-21 08:54:32Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=hashcash
pkgver=1.22
pkgrel=3
pkgdesc="a denial-of-service counter measure tool for email/spam."
arch=('i686' 'x86_64' 'mips64el')
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}" = "i686" ]; then
    make x86-openssl
  else
    make generic-openssl
  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
}