commit 4e6915c41a149fad53cb67021a92976b39abf1e3 Author: Pratyush Desai Date: Sun Apr 24 11:44:52 2022 +0530 initialize PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..fc8eba9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cmph + pkgdesc = C minimal perfect hashing library + pkgver = 2.0.2 + pkgrel = 1 + url = http://cmph.sourceforge.net/ + arch = i686 + arch = x86_64 + license = lgpl + license = mpl + depends = gcc + options = staticlibs + source = http://downloads.sourceforge.net/cmph/cmph-2.0.2.tar.gz + md5sums = 51ec5329b47774d251a96eaaafdb409e + +pkgname = cmph diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..bd9e744 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Lucas Hermann Negri +# Maintainer: Benoit Favre +pkgname=cmph +pkgver=2.0.2 +pkgrel=1 +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=('51ec5329b47774d251a96eaaafdb409e') +options=(staticlibs) + +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 +} +