2009-11-30 22:05:10 +01:00
|
|
|
# Template file for 'wireless_tools'
|
|
|
|
pkgname=wireless_tools
|
|
|
|
version=29
|
2013-04-14 17:36:49 +02:00
|
|
|
revision=5
|
2009-11-30 22:05:10 +01:00
|
|
|
wrksrc="${pkgname}.${version}"
|
|
|
|
short_desc="Set of tools allowing to manipulate the Wireless Extensions"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-16 10:31:34 +01:00
|
|
|
homepage="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$pkgname.$version.tar.gz"
|
2009-11-30 22:05:10 +01:00
|
|
|
checksum=6fb80935fe208538131ce2c4178221bab1078a1656306bce8909c19887e2e5a1
|
2013-02-16 10:31:34 +01:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
sed -e "s|CFLAGS=|CFLAGS+=|g" -i Makefile
|
|
|
|
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
|
|
make CC="$XBPS_CROSS_TRIPLET-gcc" LD="$XBPS_CROSS_TRIPLET-ld" \
|
|
|
|
AR="$XBPS_CROSS_TRIPLET-ar" \
|
|
|
|
RANLIB="$XBPS_CROSS_TRIPLET-ranlib" ${makejobs}
|
|
|
|
else
|
|
|
|
make ${makejobs}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make INSTALL_DIR=${DESTDIR}/usr/sbin INSTALL_LIB=${DESTDIR}/usr/lib \
|
|
|
|
INSTALL_INC=${DESTDIR}/usr/include \
|
|
|
|
INSTALL_MAN=${DESTDIR}/usr/share/man install
|
|
|
|
}
|
2013-04-14 17:36:49 +02:00
|
|
|
|
|
|
|
wireless_tools-devel_package() {
|
|
|
|
depends="wireless_tools>=${version}"
|
|
|
|
short_desc="${short_desc} -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wireless_tools_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|