32 lines
1002 B
Bash
32 lines
1002 B
Bash
# Template file for 'wireless_tools'
|
|
pkgname=wireless_tools
|
|
version=29
|
|
revision=10
|
|
wrksrc="wireless_tools.${version}"
|
|
short_desc="Set of tools allowing to manipulate the Wireless Extensions"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://hewlettpackard.github.io/wireless-tools/Tools.html"
|
|
distfiles="https://hewlettpackard.github.io/wireless-tools/wireless_tools.${version}.tar.gz"
|
|
checksum=6fb80935fe208538131ce2c4178221bab1078a1656306bce8909c19887e2e5a1
|
|
|
|
do_build() {
|
|
sed -i -e 's|CFLAGS=|CFLAGS+=|g' -e 's|-shared|& $(LDFLAGS)|g' Makefile
|
|
make CC="$CC" LD="$LD" AR="$AR" RANLIB="$RANLIB" ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make INSTALL_DIR=${DESTDIR}/usr/bin INSTALL_LIB=${DESTDIR}/usr/lib \
|
|
INSTALL_INC=${DESTDIR}/usr/include \
|
|
INSTALL_MAN=${DESTDIR}/usr/share/man install
|
|
}
|
|
|
|
wireless_tools-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|