summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Favre2015-06-26 07:56:16 +0200
committerBenoit Favre2015-06-26 07:56:16 +0200
commit531a81ab7fe02e29b433006abac79db8bb7e389f (patch)
treebeb246e3e6e0fcfcaa09372462118a69b0fc8a53
downloadaur-531a81ab7fe02e29b433006abac79db8bb7e389f.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..60b74a415e1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cmph
+ pkgdesc = C minimal perfect hashing library
+ pkgver = 2.0
+ pkgrel = 2
+ url = http://cmph.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = lgpl
+ license = mpl
+ depends = gcc
+ source = http://downloads.sourceforge.net/cmph/cmph-2.0.tar.gz
+ md5sums = 020946deef7418d9daf4195556ecac12
+
+pkgname = cmph
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e7f250f8247
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Contributor: Lucas Hermann Negri <kkndrox@gmail.com>
+# Maintainer: Benoit Favre <benoit.favre@gmail.com>
+pkgname=cmph
+pkgver=2.0
+pkgrel=2
+pkgdesc="C minimal perfect hashing library"
+arch=('i686' 'x86_64')
+url="http://cmph.sourceforge.net/"
+license=('lgpl' 'mpl')
+depends=('gcc')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('020946deef7418d9daf4195556ecac12')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR=${pkgdir} install
+ install -d "$pkgdir/usr/include"
+ install -t "$pkgdir/usr/include" src/*structs.h src/*hash*.h
+}
+