mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
26 lines
885 B
Bash
26 lines
885 B
Bash
|
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
||
|
# Maintainer: Charles Mauch <cmauch@gmail.com>
|
||
|
|
||
|
pkgname=hashcash
|
||
|
pkgver=1.22
|
||
|
pkgrel=1
|
||
|
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 $startdir/src/$pkgname-$pkgver
|
||
|
if [ "$CARCH" = "x86_64" ]; then
|
||
|
make generic-openssl || return 1
|
||
|
else make x86-openssl || return 1
|
||
|
fi
|
||
|
install -d -m0755 $startdir/pkg/usr/{bin,man/man1}
|
||
|
install -m755 $startdir/src/$pkgname-$pkgver/hashcash $startdir/pkg/usr/bin/hashcash
|
||
|
install -m755 $startdir/src/$pkgname-$pkgver/sha1 $startdir/pkg/usr/bin/sha1
|
||
|
install -m755 $startdir/src/$pkgname-$pkgver/hashcash.1 $startdir/pkg/usr/man/man1/hashcash.1
|
||
|
}
|