crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

Pkgfile (749B)


      1 # Description: Tools to configure and manipulate wlan devices
      2 # URL: https://hewlettpackard.github.io/wireless-tools/Tools.html
      3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com
      4 
      5 name=wireless-tools
      6 version=30.pre9
      7 release=1
      8 source=(https://hewlettpackard.github.io/$name/${name/-/_}.$version.tar.gz
      9 	fix-basename.patch)
     10 
     11 build() {
     12     cd ${name/-/_}.${version%.*}
     13 
     14     patch -Np1 -i ../fix-basename.patch
     15 
     16     # fix compiler flags, build shared library, don't run ldconfig
     17     sed -i Makefile \
     18         -e "s|CFLAGS=|CFLAGS=$CFLAGS |" \
     19         -e "/^BUILD_STATIC/d" \
     20         -e "/ldconfig/d"
     21 
     22     make
     23     make install \
     24         PREFIX=$PKG/usr \
     25         INSTALL_MAN=$PKG/usr/share/man
     26 
     27     rm -r $PKG/usr/share/man/{cs,fr}*/
     28 }