base: gawk: ajoute le PKGBUILD
[glg-lfs.git] / base / gawk / PKGBUILD
blob95ee8a88c610f516351ed55824bf2e3e7de8a50c
1 pkgname=gawk
2 pkgver=4.0.2
3 pkgrel=1
4 arch=('x86_64')
5 source=(http://ftp.gnu.org/gnu/gawk/gawk-${pkgver}.tar.xz)
6 md5sums=('8a9b2f1170ac9dcd3eb13716b5ec4021')
9 build() {
10         cd ${srcdir}/${pkgname}-${pkgver}
11         ./configure --prefix=/usr --libexecdir=/usr/lib
12         make
15 check() {
16         cd ${srcdir}/${pkgname}-${pkgver}
17         make check 
20 package() {
21         cd ${srcdir}/${pkgname}-${pkgver}
22         make DESTDIR=${pkgdir} install
23         mkdir -p ${pkgdir}/usr/share/doc/gawk-4.0.2
24         cp doc/{awkforai.txt,*.{eps,pdf,jpg}} ${pkgdir}/usr/share/doc/gawk-4.0.2