aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mhash
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-04-19 15:44:56 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-04-19 15:44:56 +0000
commit5e52436c44adabe0e5986dc80ab42c6bc17101f4 (patch)
treee3fd5cd30770017c2c94e2f7f7ee44ca9f2e0a72 /testing/mhash
parent6749090400121fa7992727c0553f78965d2ce61f (diff)
downloadaports-5e52436c44adabe0e5986dc80ab42c6bc17101f4.tar.bz2
aports-5e52436c44adabe0e5986dc80ab42c6bc17101f4.tar.xz
testing/mhash: new aport
Diffstat (limited to 'testing/mhash')
-rw-r--r--testing/mhash/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/mhash/APKBUILD b/testing/mhash/APKBUILD
new file mode 100644
index 0000000000..2964512e36
--- /dev/null
+++ b/testing/mhash/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=mhash
+pkgver=0.9.9.9
+pkgrel=0
+pkgdesc="A thread-safe hash library which provides a uniform interface to hash algorithms (MD5, SHA-1, HAVAL, etc"
+url="http://mhash.sourceforge.net/"
+arch="all"
+license="LGPL"
+depends=
+depends_dev=
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/sourceforge/mhash/$pkgname-$pkgver.tar.bz2"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="f91c74f9ccab2b574a98be5bc31eb280 mhash-0.9.9.9.tar.bz2"