aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/cmph/APKBUILD32
1 files changed, 16 insertions, 16 deletions
diff --git a/main/cmph/APKBUILD b/main/cmph/APKBUILD
index 9e48c2e3ca..b1e5bbb3e5 100644
--- a/main/cmph/APKBUILD
+++ b/main/cmph/APKBUILD
@@ -1,25 +1,24 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=cmph
pkgver=2.0
-pkgrel=0
+pkgrel=1
pkgdesc="A minimal hash C library - utility application"
url="http://cmph.sourceforge.net/"
arch="all"
license="LGPL2+ MPL1.1"
-depends=""
-makedepends=""
-install=""
subpackages="$pkgname-dev $pkgname-doc libcmph:lib"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
+
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ default_prepare
+ cd "$builddir"
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--disable-static \
--build=$CBUILD \
@@ -27,15 +26,18 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
- make tests || return 1
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
lib() {
@@ -44,6 +46,4 @@ lib() {
mv "$pkgdir"/usr/lib/libcmph*.so.* "$subpkgdir"/usr/lib/
}
-md5sums="020946deef7418d9daf4195556ecac12 cmph-2.0.tar.gz"
-sha256sums="ad6c9a75ff3da1fb1222cac0c1d9877f4f2366c5c61c92338c942314230cba76 cmph-2.0.tar.gz"
sha512sums="7f37a8dcfce047ada9968681e07f66f014f8090aa5ce99358944a60715c7ef2bc62abf4b5c146fe99a0c812f2286ff0c009683b702a4e20c66617d955cf80caa cmph-2.0.tar.gz"