From 8be3cf2312131ee9ec0bc3f4f296bb5157ae0e5b Mon Sep 17 00:00:00 2001 From: Louis-Guillaume Gagnon Date: Wed, 10 Jul 2013 11:27:05 -0400 Subject: [PATCH] base: gawk: ajoute le PKGBUILD --- base/gawk/PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 base/gawk/PKGBUILD diff --git a/base/gawk/PKGBUILD b/base/gawk/PKGBUILD new file mode 100644 index 0000000..95ee8a8 --- /dev/null +++ b/base/gawk/PKGBUILD @@ -0,0 +1,25 @@ +pkgname=gawk +pkgver=4.0.2 +pkgrel=1 +arch=('x86_64') +source=(http://ftp.gnu.org/gnu/gawk/gawk-${pkgver}.tar.xz) +md5sums=('8a9b2f1170ac9dcd3eb13716b5ec4021') + + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr --libexecdir=/usr/lib + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + mkdir -p ${pkgdir}/usr/share/doc/gawk-4.0.2 + cp doc/{awkforai.txt,*.{eps,pdf,jpg}} ${pkgdir}/usr/share/doc/gawk-4.0.2 +} -- 2.11.4.GIT