aboutsummaryrefslogtreecommitdiffstats
path: root/main/iw/APKBUILD
blob: 8ca56944411d5ccfa31134a5e7b9fd0d7e5637ba (plain)
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
37
38
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iw
pkgver=4.3
pkgrel=1
pkgdesc="nl80211 based CLI configuration utility for wireless devices"
url="http://wireless.kernel.org/en/users/Documentation/iw"
arch="all"
license="GPL"
depends=""
makedepends="libnl3-dev linux-headers"
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/network/$pkgname/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"

	local i=
	for i in $source; do
		case $i in
		*.patch)
			patch -p1 -i "$srcdir"/$i || return 1 ;;
		esac
	done
}

build () {
	cd "$_builddir"
	make V=1 || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="7adec72e91ebdd9c55429fa34a23a6f5  iw-4.3.tar.xz"
sha256sums="a6add81a51667649d8d7cfba783ab6a0f82e250a663a4065b13babdff3f6b220  iw-4.3.tar.xz"
sha512sums="ac2e15c4829ea7f47f56205942eb2ff5e26e5eeaeaf8991bd3910a758988263a24052b3b0d5fb7fed51456324524777f69e48991f99003ac7f6b2068aa18f9e8  iw-4.3.tar.xz"