summaryrefslogtreecommitdiff
path: root/user/wireless-tools/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-07-21 21:16:29 -0400
committerMax Rees <maxcrees@me.com>2019-07-21 21:16:29 -0400
commit57e345c7685983e629aac18a4e5b068392d29f6d (patch)
tree3382b950b7b2b20262401226e0495ef4a0d86514 /user/wireless-tools/APKBUILD
parent28292506b3918b763ea272399044fcf72534aec2 (diff)
downloadpackages-57e345c7685983e629aac18a4e5b068392d29f6d.tar.gz
packages-57e345c7685983e629aac18a4e5b068392d29f6d.tar.bz2
packages-57e345c7685983e629aac18a4e5b068392d29f6d.tar.xz
packages-57e345c7685983e629aac18a4e5b068392d29f6d.zip
user/*: bashism removal part 2 (o-z)
Diffstat (limited to 'user/wireless-tools/APKBUILD')
-rw-r--r--user/wireless-tools/APKBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/user/wireless-tools/APKBUILD b/user/wireless-tools/APKBUILD
index 0d5cfcf02..8f327a3e9 100644
--- a/user/wireless-tools/APKBUILD
+++ b/user/wireless-tools/APKBUILD
@@ -4,8 +4,8 @@
# Note: Sorry this is disgusting, I blame the author for archiving it using a silly naming scheme
pkgname=wireless-tools
pkgver=30_pre9
-_pkgname=${pkgname/-/_}
-_pkgver=${pkgver/_/.}
+_pkgname=wireless_tools
+_pkgver=$(printf '%s' "$pkgver" | sed 's/_/./')
_pkgmaj=${pkgver%_pre[0-9]*}
pkgrel=0
pkgdesc="Open Source wireless tools"
@@ -16,9 +16,9 @@ license="GPL-2.0-or-later"
depends=""
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
-source="https://hewlettpackard.github.io/wireless-tools/wireless_tools.${_pkgver}.tar.gz"
+source="https://hewlettpackard.github.io/wireless-tools/wireless_tools.$_pkgver.tar.gz"
-builddir="$srcdir"/"$_pkgname"."$_pkgmaj"
+builddir="$srcdir/$_pkgname.$_pkgmaj"
build() {
cd "$builddir"