aboutsummaryrefslogtreecommitdiffstats
path: root/main/iw/APKBUILD
blob: e4435779ba72b361b8b8a2252358e148a014a599 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iw
pkgver=4.1
pkgrel=0
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"
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="3a292dd342bb88e30e74015ae6fe1e54  iw-4.1.tar.xz"
sha256sums="5164aaacd8e82501d84a2187af194e8285a5a5b76e200447eb58d4dd78d1a34b  iw-4.1.tar.xz"
sha512sums="5106f87e7d84343061cdbb868f0d80ac6b5d84ea1147c5b935bc79bede12614f2a080321e86c2947cab8f4026a817d1c93dd57267b941c50e72d2c1176c4f0f6  iw-4.1.tar.xz"