archrelease: copy trunk to extra-x86_64
[arch-packages.git] / wireless_tools / trunk / PKGBUILD
blob8a05dee8129f080f9a8acadfa3b20d98f3bf0f58
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: Jason Chu <jchu@xentac.net>
5 pkgname=wireless_tools
6 pkgver=30.pre9
7 _pkgver=${pkgver%.pre*}
8 pkgrel=3
9 pkgdesc='Tools allowing to manipulate the Wireless Extensions'
10 url='https://hewlettpackard.github.io/wireless-tools/Tools.html'
11 license=('GPL')
12 arch=('x86_64')
13 source=("https://hewlettpackard.github.io/wireless-tools/${pkgname}.${pkgver}.tar.gz")
14 sha256sums=('abd9c5c98abf1fdd11892ac2f8a56737544fe101e1be27c6241a564948f34c63')
16 prepare() {
17         cd "${srcdir}/${pkgname}.${_pkgver}"
18         sed '/BUILD_STATIC =/d' -i Makefile
21 build() {
22         cd "${srcdir}/${pkgname}.${_pkgver}"
23         make CFLAGS="${CFLAGS} -I." LDFLAGS="${LDFLAGS}"
26 package() {
27         cd "${srcdir}/${pkgname}.${_pkgver}"
28         make \
29                 INSTALL_DIR="${pkgdir}/usr/bin" \
30                 INSTALL_LIB="${pkgdir}/usr/lib" \
31                 INSTALL_INC="${pkgdir}/usr/include" \
32                 INSTALL_MAN="${pkgdir}/usr/share/man" \
33                 install