summaryrefslogtreecommitdiff
path: root/user/gperf/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-04 23:44:46 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-04 23:44:46 -0500
commitb68d81e063656f69000711894967451e030e1a1d (patch)
tree596a04ef0c2a085342addb17508ad8ae4e34a2d9 /user/gperf/APKBUILD
parent12ecf1d2aeed63b38407e5fdf42dbab294867113 (diff)
downloadpackages-b68d81e063656f69000711894967451e030e1a1d.tar.gz
packages-b68d81e063656f69000711894967451e030e1a1d.tar.bz2
packages-b68d81e063656f69000711894967451e030e1a1d.tar.xz
packages-b68d81e063656f69000711894967451e030e1a1d.zip
user/gperf: pull in, fix metadata
Diffstat (limited to 'user/gperf/APKBUILD')
-rw-r--r--user/gperf/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/gperf/APKBUILD b/user/gperf/APKBUILD
new file mode 100644
index 000000000..b11af06da
--- /dev/null
+++ b/user/gperf/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=gperf
+pkgver=3.1
+pkgrel=3
+pkgdesc="Mathematically-perfect hash function generator"
+url="https://www.gnu.org/software/gperf/"
+arch="all"
+license="GPL-3.0+"
+subpackages="$pkgname-doc"
+depends=""
+makedepends=""
+source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make -j1 check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+sha512sums="855ebce5ff36753238a44f14c95be7afdc3990b085960345ca2caf1a2db884f7db74d406ce9eec2f4a52abb8a063d4ed000a36b317c9a353ef4e25e2cca9a3f4 gperf-3.1.tar.gz"