aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iw/APKBUILD
blob: 3cce23eff1b009dd6e3758a59a3e392bcf38e027 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iw
pkgver=0.9.18
pkgrel=0
pkgdesc="nl80211 based CLI configuration utility for wireless devices"
url="http://wireless.kernel.org/en/users/Documentation/iw"
license="GPL"
depends=""
makedepends="libnl-dev"
source="http://wireless.kernel.org/download/iw/iw-$pkgver.tar.bz2
	iw-bb-install.patch
	iw-git-version.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/iw-bb-install.patch || return 1
	patch -p1 -i "$srcdir"/iw-git-version.patch || return 1
}

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

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

md5sums="9734080d8a5c4b768c5e0da665a48950  iw-0.9.18.tar.bz2
7f8cfc205fdcfd49d04c8923c76f439a  iw-bb-install.patch
779d0e73df6e484c071149c9fb720551  iw-git-version.patch"