summaryrefslogtreecommitdiff
path: root/repo/util/wireless-tools/wireless-tools.xibuild
blob: dc7e19ff913c1d8ca056978977b96acbfe718998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

MAKEDEPS="make"
DEPS=""

PKG_VER=29
SOURCE=https://hewlettpackard.github.io/wireless-tools/wireless_tools.$PKG_VER.tar.gz
DESC="Tools allowing to manipulate the Wireless Extensions"

ADDITIONAL="
    https://www.linuxfromscratch.org/patches/blfs/svn/wireless_tools-$PKG_VER-fix_iwlist_scanning-1.patch
    "

prepare () {
    sed -i "s/ldconfig/echo/g" Makefile
    sed -i "s/ln -sfn/ln -sf/g" Makefile
    patch -Np1 -i wireless_tools-$PKG_VER-fix_iwlist_scanning-1.patch
}

build () {
    make
}

package () {
    make PREFIX=$PKG_DEST/usr INSTALL_MAN=$PKG_DEST/usr/share/man install
}