From 92d22586d879b9f52da2110b66a120e79c4c7492 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 31 Oct 2015 11:06:08 +0100 Subject: [PATCH] nawk: switch this to alternatives for 'awk'. --- srcpkgs/nawk/template | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/srcpkgs/nawk/template b/srcpkgs/nawk/template index 8fc476f597..116468e650 100644 --- a/srcpkgs/nawk/template +++ b/srcpkgs/nawk/template @@ -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 }