summaryrefslogtreecommitdiff
path: root/hashcash/PKGBUILD
blob: b2d56039cc8075b016e45e674137cec9603439ed (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
33
34
35
36
# 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=25
pkgdesc="a denial-of-service counter measure tool for email/spam."
arch=('i486' 'i686' 'pentium4' 'x86_64')
url="http://www.hashcash.org"
license=('GPL')
_pinned_dependencies=(
  'glibc>=2.31'
  'libcrypto.so=3'
)
depends=(
  "${_pinned_dependencies[@]}"
)
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
}