36 lines
853 B
Text
36 lines
853 B
Text
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=macchanger
|
|
version=1.7.0
|
|
build=1sml
|
|
homepage="https://github.com/alobbs/macchanger"
|
|
download="https://github.com/alobbs/macchanger/archive/refs/tags/$version.tar.gz"
|
|
desc="Utility for viewing and manipulating MAC addresses of network interfaces"
|
|
requires="musl"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
|
|
# Thank you sabotage linux
|
|
sed -i '/#include <sys\/ioctl.h>/a#include <sys/types.h>' src/netinfo.c
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix=/usr
|
|
|
|
make
|
|
make install DESTDIR=$pkg
|
|
|
|
cp COPYING $pkgdocs
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
72fee04fbed6c1c8a1df7a7769fa57956785376d502069034c39b1f04fefc37d16e7d941b7a205c832e704b2b51033fe58f3f2c75a1bb6b1acdc50c9c5740291 macchanger-1.7.0.tar.lz
|
|
"
|