29 lines
747 B
Plaintext
29 lines
747 B
Plaintext
# Description: A pattern scanning and processing language
|
|
# URL: http://www.gnu.org/software/gawk/gawk.html
|
|
# Maintainer: Per Lidén, core-ports at crux dot nu
|
|
|
|
name=gawk
|
|
version=3.1.5
|
|
release=3
|
|
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
|
|
$name-$version-io.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p0 -i $SRC/$name-$version-io.patch
|
|
./configure --prefix=/usr \
|
|
--enable-switch \
|
|
--disable-nls
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -rf $PKG/usr/{info,share,libexec}
|
|
rm $PKG/usr/bin/gawk-$version \
|
|
$PKG/usr/bin/pgawk-$version \
|
|
$PKG/usr/bin/{p,i}gawk \
|
|
$PKG/usr/man/man1/{p,i}gawk.1
|
|
|
|
ln -sf gawk.1.gz $PKG/usr/man/man1/awk.1.gz
|
|
}
|