blob: 9a74147983b75a2ecd6e9bfcc8d4650b3145c17d (
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
39
40
41
|
# $Id: PKGBUILD 142110 2011-11-05 10:13:55Z tpowa $
# Maintainer:
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gawk
pkgver=4.0.0
pkgrel=2.1
pkgdesc="GNU version of awk"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/directory/GNU/gawk.html"
license=('GPL')
groups=('base')
depends=('sh' 'glibc')
provides=('awk')
install=gawk.install
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('51e417b71287629940051e6f652c6492')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --libexecdir=/usr/lib
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make -j1 check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -dm755 ${pkgdir}/bin
mv ${pkgdir}/usr/bin/gawk* ${pkgdir}/bin/
ln -sf gawk ${pkgdir}/bin/awk
ln -sf /bin/gawk ${pkgdir}/usr/bin/
}
|