core/wireless_tools/PKGBUILD
2016-03-09 21:48:15 +00:00

38 lines
1.0 KiB
Bash

#
# 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>
pkgname=wireless_tools
pkgver=30.pre9
_pkgver=30
pkgrel=2
pkgdesc="Wireless Tools"
arch=('i686' 'x86_64')
url="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
license=('GPL')
depends=('glibc')
source=("http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${pkgname}.${pkgver}.tar.gz")
md5sums=('ca91ba7c7eff9bfff6926b1a34a4697d')
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
}
build() {
cd ${srcdir}/${pkgname}.${_pkgver}
make
}
package() {
cd ${srcdir}/wireless_tools.${_pkgver}
make INSTALL_DIR="${pkgdir}/usr/sbin" \
INSTALL_LIB="${pkgdir}/usr/lib" \
INSTALL_INC="${pkgdir}/usr/include" \
INSTALL_MAN="${pkgdir}/usr/share/man" install
}