summaryrefslogtreecommitdiffstats
path: root/abs/core/wireless_tools/PKGBUILD
blob: 57ba7574f674e93878c64f707355785ca6be0238 (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
# $Id: PKGBUILD 186266 2013-05-23 06:41:05Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jason Chu <jchu@xentac.net>

pkgname=wireless_tools
pkgver=29
pkgrel=8
pkgdesc='Tools allowing to manipulate the Wireless Extensions'
url='http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html'
license=('GPL')
arch=('i686' 'x86_64')
source=("http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${pkgname}.${pkgver}.tar.gz"
        'dense.patch')
sha1sums=('22040ac1497f4c5f8ddeca365591b01ae3475710'
          '5c297c7dff1ec1d2a3d918c20622ab3c6daf5b72')

prepare() {
	cd "${srcdir}/${pkgname}.${pkgver}"
	patch -p1 -i ../dense.patch # FS#15363
}

build() {
	cd "${srcdir}/${pkgname}.${pkgver}"
	make CFLAGS="${CFLAGS} -I." LDFLAGS="${LDFLAGS}"
}

package() {
	cd "${srcdir}/${pkgname}.${pkgver}"
	make \
		INSTALL_DIR="${pkgdir}/usr/bin" \
		INSTALL_LIB="${pkgdir}/usr/lib" \
		INSTALL_INC="${pkgdir}/usr/include" \
		INSTALL_MAN="${pkgdir}/usr/share/man" \
		install
}