summaryrefslogtreecommitdiffstats
path: root/main/iw/APKBUILD
blob: d70d27f779cb4dcbecdbe1c906a63f4fc2c7e4f7 (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=3.17
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"
#	iw-git-version.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			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="69c4a2f29cf560247febc6cad7161a72  iw-3.17.tar.xz"
sha256sums="48a62eb5cd8e757c9617749df96b01f133c184f6c107f18be660ee08f155fa93  iw-3.17.tar.xz"
sha512sums="ac4779a88aacb9e2f4859cdb3e953bfba0a83b2e8140777092d61ced6799f09d8ec5628a359109cc23e6389e0ec0ab5a98b9da93c400b7cffedd930013c44f39  iw-3.17.tar.xz"