SRC_FETCH_PATH=https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${PKGVER}.tar.xz SRC_FETCH_METHOD=http PATCH_LIST=" 0001-wg-show-apply-const.patch 0002-wg-show-fix-show-all.patch " FILE_LIST= MAKEDEPENDS= function do_config { : } function do_compile_only { # Sometimes, broken packages will need LD="$CC" (cd src && CC="$CC" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ $FLXPMAKE) } function do_clean { (cd src && $FLXPMAKE clean) } function do_prepack { local ret=0 mkdir -p $ROOTDIR/sbin $ROOTDIR/sbin/init.d || ret=1 install -m 0511 src/wg $ROOTDIR/sbin/ || ret=1 set_default_perm $ROOTDIR || ret=1 install -m 0555 "$PKGDIR/add-ons/wg" $ROOTDIR/sbin/init.d/ || ret=1 return $ret }