# SliTaz package receipt. PACKAGE="crunch" VERSION="3.6" CATEGORY="network" SHORT_DESC="Wordlist generator." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tgz" WEB_SITE="https://crunch-wordlist.sourceforge.io/" WGET_URL="http://tenet.dl.sourceforge.net/project/crunch-wordlist/crunch-wordlist/$TARBALL" BUILD_DEPENDS="sudo" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/ 2>/dev/null | \ sed '/scope="row/!d;/tgz/!d;s|.*list/crunch-||;s|.tgz.*||;q' } # Rules to configure and make the package. compile_rules() { make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/crunch $fs/usr/share }