# Maintainer: PktSurf 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" prepbuilddir() { mkandenterbuilddir rm -rf $app-$version mkdir -p $app-$version cd $app-$version } build() { mkdir -p $pkg/usr/bin gcc -Wall -o $pkg/usr/bin/maccalc $srcdir/maccalc.c install -Dm 644 $srcdir/LICENSE $pkgdocs/LICENSE mkfinalpkg } sha512sums=" 5e8c6c70fb315197a039c67b07fc01389d930d9174bf1611d9f0fbe204008f708aee402e94c525870c4ca7dedac0b52ae27ec086ad8dabecf688931fd5897e13 maccalc.c "