summaryrefslogtreecommitdiff
path: root/gawk/Pkgfile
blob: ff3ea4a6eb4f358c224d121a2ba432360becbe66 (plain)
    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 
    5 name=gawk
    6 version=3.1.5
    7 release=3
    8 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
    9         $name-$version-io.patch)
   10 
   11 build() {
   12     cd $name-$version
   13 
   14     patch -p0 -i $SRC/$name-$version-io.patch
   15     ./configure --prefix=/usr \
   16                 --enable-switch \
   17                 --disable-nls
   18     make
   19     make DESTDIR=$PKG install
   20 
   21     rm -rf $PKG/usr/{info,share,libexec}
   22     rm $PKG/usr/bin/gawk-$version \
   23        $PKG/usr/bin/pgawk-$version \
   24        $PKG/usr/bin/{p,i}gawk \
   25        $PKG/usr/man/man1/{p,i}gawk.1
   26 
   27     ln -sf gawk.1.gz $PKG/usr/man/man1/awk.1.gz
   28 }

Generated by cgit