summaryrefslogtreecommitdiff
path: root/user/wireless-tools/APKBUILD
blob: 8f327a3e94f418f349023e3aaef29ed7da1534be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
# Note: Sorry this is disgusting, I blame the author for archiving it using a silly naming scheme
pkgname=wireless-tools
pkgver=30_pre9
_pkgname=wireless_tools
_pkgver=$(printf '%s' "$pkgver" | sed 's/_/./')
_pkgmaj=${pkgver%_pre[0-9]*}
pkgrel=0
pkgdesc="Open Source wireless tools"
url="https://hewlettpackard.github.io/wireless-tools/Tools.html"
arch="all"
options="!check"  # these applications have no testsuite
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"

builddir="$srcdir/$_pkgname.$_pkgmaj"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make INSTALL_DIR="$pkgdir"/usr/sbin \
		INSTALL_LIB="$pkgdir"/usr/lib \
		INSTALL_INC="$pkgdir"/usr/include \
		INSTALL_MAN="$pkgdir"/usr/share/man install
}

sha512sums="0561923bca075af4754d21e1be303cbd1ce3558cb6481c9c12bc7d330a353acf8ad81a822488570e859480287999c3bb2a698c993556a92f0699743e0a527ff1  wireless_tools.30.pre9.tar.gz"