smlinux/net/maccalc/maccalc.SMBuild
2022-02-13 15:56:03 +05:30

29 lines
672 B
Text
Executable file

app=maccalc
version=1.0
build=1sml
homepage="https://openwrt.org/packages/pkgdata/maccalc"
download="https://github.com/openwrt/packages/raw/openwrt-21.02/net/maccalc/src/main.c"
desc="Utility to manipulate MAC addresses"
requires="musl"
build() {
mkandenterbuilddir
rm -rf $app-$version
mkdir -p $app-$version
cd $app-$version
cp $srcdir/maccalc.c .
fixbuilddirpermissions
gcc -Wall -o maccalc maccalc.c
install -Dm 755 maccalc $pkg/bin/maccalc
cp $srcdir/LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
5e8c6c70fb315197a039c67b07fc01389d930d9174bf1611d9f0fbe204008f708aee402e94c525870c4ca7dedac0b52ae27ec086ad8dabecf688931fd5897e13 maccalc.c
"