wok-current view crunch/receipt @ rev 24569

sokojs: add shrink.sh (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 26 18:46:53 2022 +0000 (2022-02-26)
parents 370da83187ab
children b56b38cfd475
line source
1 # SliTaz package receipt.
3 PACKAGE="crunch"
4 VERSION="3.6"
5 CATEGORY="network"
6 SHORT_DESC="Wordlist generator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://sourceforge.net/projects/crunch-wordlist/"
11 WGET_URL="http://tenet.dl.sourceforge.net/project/crunch-wordlist/crunch-wordlist/$TARBALL"
13 BUILD_DEPENDS="sudo"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/ 2>/dev/null | \
19 sed '/scope="row/!d;/tgz/!d;s|.*list/crunch-||;s|.tgz.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/share/crunch $fs/usr/share
35 }