# Description: Collection of scripts for CRUX, mainly oriented towards package and port management
# URL: https://git.crux.nu/tools/prt-utils
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: elfutils dialog

name=prt-utils
version=1.3.7
release=1
source=(https://git.crux.nu/tools/$name/archive/release-$version.tar.gz)
renames=($name-$version.tar.gz)

build() {
    cd $name
    make DESTDIR="$PKG" install
    install -d "$PKG"/etc/revdep.d

    # Uncomment the following and edit the sed command, if you want the 
    # original bash scripts instead of the awk rewrites. Older shell 
    # scripts are available for: prtverify, finddeps, findredundantdeps
    #
    # sed "/^LEGACY/s/=.*/= prtverify finddeps/" -i Makefile
    # make DESTDIR="$PKG" install-legacy
}
