initialize PKGBUILD

This commit is contained in:
Pratyush Desai 2022-04-24 11:44:52 +05:30
commit 4e6915c41a
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD
2 changed files with 42 additions and 0 deletions

15
.SRCINFO Normal file
View File

@ -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

27
PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# Contributor: Lucas Hermann Negri <kkndrox@gmail.com>
# Maintainer: Benoit Favre <benoit.favre@gmail.com>
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
}