# Description: Collection of scripts for CRUX, mainly oriented towards package and port management # URL: https://git.crux.nu/tools/prt-utils # Maintainer: KRAK3N Team, extra ports at krak3n dot my # Depends on: elfutils dialog gawk perl name=prt-utils version=1.3.6 release=1 _commit=390d0f774a76ce6a8323fa8827602fca39c05bc5 source=(https://git.crux.nu/tools/$name/archive/$_commit.tar.gz disallowed_usretc_dir.patch) renames=($name-$version-$release.tar.gz SKIP) build() { cd $name # disallowed /usr/etc patch -Np1 -i ../disallowed_usretc_dir.patch # awk is busybox's, gawk is GNU's sed 's/awk/gawk/' -i scripts/finddeps # xz compression is defaults sed 's/gz/xz/' -i scripts/oldfiles # fix awk script that use coreutils's env sed 's/env -S awk/gawk/' -i scripts/prtverify.awk make DESTDIR=$PKG install install -d $PKG/etc/revdep.d }