aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmph
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-29 12:29:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-29 12:29:52 +0000
commit648eefa83c7189822581aca994a967b7747a790d (patch)
treef622f73774850215fa2c15a133a77be7b37ba4d4 /main/cmph
parentb967bcc2298dadd6d7a81132505a283c46c9ec44 (diff)
downloadaports-648eefa83c7189822581aca994a967b7747a790d.tar.bz2
aports-648eefa83c7189822581aca994a967b7747a790d.tar.xz
main/cmph: moved from testing
Diffstat (limited to 'main/cmph')
-rw-r--r--main/cmph/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/cmph/APKBUILD b/main/cmph/APKBUILD
new file mode 100644
index 0000000000..a52b0bcf13
--- /dev/null
+++ b/main/cmph/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor:
+# Maintainer:
+pkgname=cmph
+pkgver=0.9
+pkgrel=0
+pkgdesc="minimal perfect hash C library - utility application"
+url="http://cmph.sourceforge.net/"
+license="LGPL MPL-1.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
+prepare() {
+ cd "$_builddir"
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+lib() {
+ pkgdesc="minimal perfect hash C library - utility application"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libcmph*.so.* "$subpkgdir"/usr/lib/
+}
+
+md5sums="14c17e3058174e9333936caa8e18ed28 cmph-0.9.tar.gz"