PKGBUILD 1.01 KB
Newer Older
Phil's avatar
Phil committed
1 2 3 4 5
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
Jan Mette's avatar
Jan Mette committed
6 7

pkgname=wireless_tools
Lisa's avatar
Lisa committed
8 9
pkgver=30.pre9
_pkgver=30
10
pkgrel=2
Jan Mette's avatar
Jan Mette committed
11 12 13 14 15
pkgdesc="Wireless Tools"
arch=('i686' 'x86_64')
url="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
license=('GPL')
depends=('glibc')
Lisa's avatar
Lisa committed
16 17
source=("http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${pkgname}.${pkgver}.tar.gz")
md5sums=('ca91ba7c7eff9bfff6926b1a34a4697d')
Jan Mette's avatar
Jan Mette committed
18

19 20 21 22 23 24 25
prepare() {
  	cd "${srcdir}/${pkgname}.${_pkgver}"
# This triggers the full build, instead of the "static" one
# which is smaller in size but lacks the shared library.
	sed '/BUILD_STATIC =/d' -i Makefile
}

Jan Mette's avatar
Jan Mette committed
26
build() {
27
	cd ${srcdir}/${pkgname}.${_pkgver}
Phil's avatar
Phil committed
28 29
	make
}
Jan Mette's avatar
Jan Mette committed
30

Phil's avatar
Phil committed
31
package() {
Lisa's avatar
Lisa committed
32
	cd ${srcdir}/wireless_tools.${_pkgver}
Phil's avatar
Phil committed
33 34 35 36
	make INSTALL_DIR="${pkgdir}/usr/sbin" \
		INSTALL_LIB="${pkgdir}/usr/lib" \
		INSTALL_INC="${pkgdir}/usr/include" \
		INSTALL_MAN="${pkgdir}/usr/share/man" install
Jan Mette's avatar
Jan Mette committed
37
}