summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122015-06-08 12:47:06 +0200
committerwillemw122015-06-08 12:47:06 +0200
commit58f57a6d1df90ce57e7de804c928c128bc6cf4ac (patch)
tree87920d324a0be0d28f1180ba6db7dc28f703eefb
downloadaur-58f57a6d1df90ce57e7de804c928c128bc6cf4ac.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD34
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38d8c7de1e6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ngp-git
+ pkgdesc = Ncurses grep tool
+ pkgver = 1.2.r12.g025ab10
+ pkgrel = 1
+ url = https://github.com/jonathanklee/ngp
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = ncurses
+ provides = ngp
+ conflicts = ngp
+ source = ngp-git::git://github.com/jonathanklee/ngp.git
+ md5sums = SKIP
+
+pkgname = ngp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f2588f3cd4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: willemw <willemw12@gmail.com>
+
+_pkgname=ngp
+pkgname=$_pkgname-git
+pkgver=1.2.r12.g025ab10
+pkgrel=1
+pkgdesc="Ncurses grep tool"
+arch=('i686' 'x86_64')
+url="https://github.com/jonathanklee/ngp"
+license=('GPL')
+depends=('ncurses')
+makedepends=('git')
+provides=($_pkgname)
+conflicts=($_pkgname)
+source=($pkgname::git://github.com/jonathanklee/ngp.git)
+md5sums=(SKIP)
+
+pkgver() {
+ cd $pkgname
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $pkgname
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir/" install
+}
+