mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
gawk: switch this to alternatives for 'awk'.
This commit is contained in:
parent
2a7b43742e
commit
13796a299f
1 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
||||||
# Template file for 'gawk'
|
# Template file for 'gawk'
|
||||||
pkgname=gawk
|
pkgname=gawk
|
||||||
version=4.1.3
|
version=4.1.3
|
||||||
revision=3
|
revision=4
|
||||||
|
lib32disabled=yes
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-readline"
|
configure_args="--with-readline"
|
||||||
|
@ -13,11 +14,14 @@ homepage="http://www.gnu.org/directory/GNU/gawk.html"
|
||||||
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
||||||
checksum=e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625
|
checksum=e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625
|
||||||
|
|
||||||
lib32disabled=yes
|
alternatives="
|
||||||
provides="awk-0_1"
|
awk:/usr/bin/awk:/usr/bin/gawk
|
||||||
replaces="awk>=0"
|
awk:/usr/share/man/man1/awk.1:/usr/share/man/man1/gawk.1"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# Create symlinks for bins and manpages.
|
# Create symlinks for bins and manpages.
|
||||||
sed -i -e "s|\$(LN)|\$(LN_S)|g" Makefile.in doc/Makefile.in
|
sed -i -e "s|\$(LN)|\$(LN_S)|g" Makefile.in doc/Makefile.in
|
||||||
}
|
}
|
||||||
|
post_install() {
|
||||||
|
rm ${DESTDIR}/usr/bin/awk
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue