summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-03 18:14:08 +0800
committerChocobo12017-08-03 18:40:26 +0800
commit47979cc2207a7aa91ef755195d044499f8d1091a (patch)
treeb9b140f78fa773fc051f399c7f4620d81890029b
downloadaur-gperf-git.tar.gz
newpkg: gperf-git 3.1.r5.g793a229-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD44
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0e12d0f754e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = gperf-git
+ pkgdesc = A perfect hash function generator
+ pkgver = 3.1.r5.g793a229
+ pkgrel = 1
+ url = https://www.gnu.org/software/gperf/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = glibc
+ provides = gperf
+ conflicts = gperf
+ source = git+https://git.savannah.gnu.org/git/gperf.git
+ sha256sums = SKIP
+
+pkgname = gperf-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d26e78ca0d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=gperf-git
+pkgver=3.1.r5.g793a229
+pkgrel=1
+pkgdesc="A perfect hash function generator"
+arch=('i686' 'x86_64')
+url="https://www.gnu.org/software/gperf/"
+license=('GPL')
+depends=('glibc')
+makedepends=('git')
+provides=('gperf')
+conflicts=('gperf')
+source=("git+https://git.savannah.gnu.org/git/gperf.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "gperf"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "gperf"
+
+ ./autogen.sh
+ ./configure --prefix="/usr"
+ sed -i 's/ cd doc;/# cd doc;/' "Makefile" # skip over doc
+
+ make
+}
+
+check() {
+ cd "gperf"
+
+ #make check
+}
+
+package() {
+ cd "gperf"
+
+ make DESTDIR="$pkgdir" install
+}