summaryrefslogtreecommitdiff
path: root/core/gawk/PKGBUILD
blob: 5adb1153fa2a936e35a614c114b01b4025145e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 174267 2013-01-03 13:58:07Z allan $
# Maintainer:
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=gawk
pkgver=4.0.2
pkgrel=1.1
pkgdesc="GNU version of awk"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/directory/GNU/gawk.html"
license=('GPL')
groups=('base' 'base-devel')
depends=('sh' 'glibc')
provides=('awk')
install=gawk.install
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig})
md5sums=('4d505dc2c9f1eb3e9f8d6cac87d4bd1a'
         '131f79e5aa1528649c90ccf0440db0a6')

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

  install -dm755 ${pkgdir}/bin 
  ln -sf /usr/bin/gawk ${pkgdir}/bin/
  ln -sf gawk ${pkgdir}/bin/awk
}