aboutsummaryrefslogtreecommitdiffstats
path: root/main/iw/APKBUILD
blob: dbf9bd297a5f3f98b1058182ee69d19793878a7a (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.13
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"
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="d60a5bff5c87655786431061c94864e2  iw-3.13.tar.xz"
sha256sums="70c1c0f5145542b4d04dd52ad637920718515245e3dd3b4dc4c8e3b57b110dc6  iw-3.13.tar.xz"
sha512sums="cbfa2ea8f4584e61060d56e52f405d1e67dc04d08b75179dde58d2ed20b78eae78b04650af1760265df97e559af0af6664e384d65109bf380391bc38b08a348d  iw-3.13.tar.xz"