nawk: switch this to alternatives for 'awk'.

This commit is contained in:
Juan RP 2015-10-31 11:06:08 +01:00
parent 13796a299f
commit 92d22586d8

View file

@ -1,7 +1,7 @@
# Template file for 'nawk'
pkgname=nawk
version=20121220
revision=1
revision=2
create_wrksrc=yes
hostmakedepends="bison"
short_desc="The one, true implementation of AWK"
@ -11,8 +11,9 @@ homepage="http://cm.bell-labs.com/who/bwk/"
distfiles="http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
checksum=8dc092165c5a4e1449f964286483d06d0dbfba4b0bd003cb5dab30de8f6d9b83
provides="awk-0_1"
replaces="awk>=0"
alternatives="
awk:/usr/bin/awk:/usr/bin/nawk
awk:/usr/share/man/man1/awk.1:/usr/share/man/man1/nawk.1"
do_configure() {
sed -i '/maketab/s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/' makefile
@ -23,8 +24,7 @@ do_build() {
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
}
do_install() {
vinstall a.out 755 usr/bin nawk
vinstall awk.1 644 usr/share/man/man1 nawk.1
vinstall LICENSE 644 usr/share/licenses/nawk
ln -s nawk ${DESTDIR}/usr/bin/awk
vbin a.out nawk
vman awk.1 nawk.1
vlicense LICENSE
}