diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-04-19 15:44:56 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-04-19 15:44:56 +0000 |
commit | 5e52436c44adabe0e5986dc80ab42c6bc17101f4 (patch) | |
tree | e3fd5cd30770017c2c94e2f7f7ee44ca9f2e0a72 | |
parent | 6749090400121fa7992727c0553f78965d2ce61f (diff) | |
download | alpine_aports-5e52436c44adabe0e5986dc80ab42c6bc17101f4.tar.bz2 alpine_aports-5e52436c44adabe0e5986dc80ab42c6bc17101f4.tar.xz alpine_aports-5e52436c44adabe0e5986dc80ab42c6bc17101f4.zip |
testing/mhash: new aport
-rw-r--r-- | testing/mhash/APKBUILD | 42 |
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 @@ | |||
1 | # Contributor: Carlo Landmeter <clandmeter@gmail.com> | ||
2 | # Maintainer: | ||
3 | pkgname=mhash | ||
4 | pkgver=0.9.9.9 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="A thread-safe hash library which provides a uniform interface to hash algorithms (MD5, SHA-1, HAVAL, etc" | ||
7 | url="http://mhash.sourceforge.net/" | ||
8 | arch="all" | ||
9 | license="LGPL" | ||
10 | depends= | ||
11 | depends_dev= | ||
12 | makedepends="$depends_dev" | ||
13 | install="" | ||
14 | subpackages="$pkgname-dev $pkgname-doc" | ||
15 | source="http://downloads.sourceforge.net/sourceforge/mhash/$pkgname-$pkgver.tar.bz2" | ||
16 | |||
17 | _builddir="$srcdir/$pkgname-$pkgver" | ||
18 | |||
19 | prepare() { | ||
20 | local i | ||
21 | cd "$_builddir" | ||
22 | for i in $source; do | ||
23 | case $i in | ||
24 | *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; | ||
25 | esac | ||
26 | done | ||
27 | } | ||
28 | |||
29 | build() { | ||
30 | cd "$_builddir" | ||
31 | ./configure --prefix=/usr \ | ||
32 | --mandir=/usr/share/man \ | ||
33 | --infodir=/usr/share/info | ||
34 | make || return 1 | ||
35 | } | ||
36 | |||
37 | package() { | ||
38 | cd "$_builddir" | ||
39 | make DESTDIR="$pkgdir" install || return 1 | ||
40 | } | ||
41 | |||
42 | md5sums="f91c74f9ccab2b574a98be5bc31eb280 mhash-0.9.9.9.tar.bz2" | ||