aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmph/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-28 12:52:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-08-28 22:30:14 +0000
commit511108bad3400b35096c65e6bcf32cd7c2bee8c8 (patch)
treeb0159c9b19171bb5bd8547cd1408422e0d515710 /main/cmph/APKBUILD
parent768e893de586f7760cc6213bd1f3b5a748979a04 (diff)
downloadaports-511108bad3400b35096c65e6bcf32cd7c2bee8c8.tar.bz2
aports-511108bad3400b35096c65e6bcf32cd7c2bee8c8.tar.xz
main/cmph: modernize APKBUILD and add check
Diffstat (limited to 'main/cmph/APKBUILD')
-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"