summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7555301a03a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=gawk-git
+pkgver=4.1.4.r1635.g5557a45f
+pkgrel=1
+pkgdesc="GNU version of awk"
+arch=('i686' 'x86_64')
+url="https://www.gnu.org/software/gawk/"
+license=('GPL3')
+depends=('glibc' 'mpfr')
+makedepends=('git')
+provides=('awk')
+conflicts=('gawk')
+source=("git+https://git.savannah.gnu.org/git/gawk.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "gawk"
+
+ git describe --long --tags | sed 's/^gawk-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "gawk"
+
+ ./bootstrap.sh
+ ./configure --prefix="/usr" --without-libsigsegv
+ make
+}
+
+check() {
+ cd "gawk"
+
+ make check
+}
+
+package() {
+ cd "gawk"
+
+ make DESTDIR="$pkgdir" install
+}