summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-03 14:13:23 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-03 14:13:23 +0000
commitee4407bf36d2b24c403c520b599d9fbd431e26cf (patch)
tree58a2e79f7dd7eecf55b6de61c077f6180381bff3
parent3de73cb6e35941541d5689c0ab0d2ecacb85005e (diff)
downloadpackages-ee4407bf36d2b24c403c520b599d9fbd431e26cf.tar.gz
packages-ee4407bf36d2b24c403c520b599d9fbd431e26cf.tar.bz2
packages-ee4407bf36d2b24c403c520b599d9fbd431e26cf.tar.xz
packages-ee4407bf36d2b24c403c520b599d9fbd431e26cf.zip
system/mawk: Install to /bin and symlink to /usr/bin
-rw-r--r--system/mawk/APKBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/mawk/APKBUILD b/system/mawk/APKBUILD
index d8fd88b7d..326003b51 100644
--- a/system/mawk/APKBUILD
+++ b/system/mawk/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mawk
pkgver=1.3.4.20200120
-pkgrel=0
+pkgrel=1
pkgdesc="Pattern scanning and text processing language"
url="https://invisible-island.net/mawk/mawk.html"
arch="all"
@@ -21,7 +21,8 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var
+ --localstatedir=/var \
+ --bindir=/bin
make
}
@@ -31,7 +32,9 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- ln -s mawk "$pkgdir"/usr/bin/awk
+ ln -s mawk "$pkgdir"/bin/awk
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s ../../bin/awk "$pkgdir"/usr/bin/awk
}
sha512sums="14d9a6642ce931bf6457d248fc2d6da4f0ea7541976ca282ea708b26df048f86fdf92c27f72d497501ccd43a244d1d1a606f1a2f266a7558306fea35dcc3041b mawk-1.3.4-20200120.tgz"