| 1 | # Description: A pattern scanning and processing language |
| 2 | # URL: http://www.gnu.org/software/gawk/gawk.html |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: |
| 6 | |
| 7 | name=gawk |
| 8 | version=3.1.7 |
| 9 | release=2 |
| 10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | ./configure --build=$CHOST \ |
| 15 | --host=$CTARGET \ |
| 16 | --prefix=/usr \ |
| 17 | --libexecdir=/usr/lib \ |
| 18 | --mandir=/usr/man \ |
| 19 | --enable-switch \ |
| 20 | --disable-nls |
| 21 | make |
| 22 | make DESTDIR=$PKG install |
| 23 | |
| 24 | rm -r $PKG/usr/share/info |
| 25 | rm $PKG/usr/bin/gawk-$version \ |
| 26 | $PKG/usr/bin/pgawk-$version \ |
| 27 | $PKG/usr/bin/{p,i}gawk \ |
| 28 | $PKG/usr/man/man1/{p,i}gawk.1 |
| 29 | |
| 30 | ln -sf gawk.1.gz $PKG/usr/man/man1/awk.1.gz |
| 31 | } |