wok-current annotate dfc/receipt @ rev 24974
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 02 11:23:24 2022 +0000 (2022-05-02) |
parents | 544e47246b33 |
children | 00e3b45c063b |
rev | line source |
---|---|
pascal@15721 | 1 # SliTaz package receipt. |
pascal@15721 | 2 |
pascal@15721 | 3 PACKAGE="dfc" |
Hans-G?nter@20823 | 4 VERSION="3.1.1" |
pascal@15721 | 5 CATEGORY="utilities" |
pascal@15721 | 6 SHORT_DESC="Displays file system space usage using graphs and colors." |
pascal@15721 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15721 | 8 LICENSE="BSD" |
pascal@24893 | 9 WEB_SITE="https://github.com/Rolinh/dfc" |
Hans-G?nter@20823 | 10 |
pascal@15721 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20823 | 12 WGET_URL="https://projects.gw-computing.net/attachments/download/615/$TARBALL" |
pascal@15721 | 13 |
pascal@15721 | 14 DEPENDS="ncurses" |
pascal@15721 | 15 BUILD_DEPENDS="ncurses-dev cmake gettext" |
pascal@15721 | 16 |
pascal@24540 | 17 # What is the latest version available today? |
pascal@24540 | 18 current_version() |
pascal@24540 | 19 { |
pascal@24540 | 20 wget -O - https://github.com/rolinh/dfc/releases 2>/dev/null | \ |
pascal@24540 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24540 | 22 } |
pascal@24540 | 23 |
pascal@15721 | 24 # Rules to configure and make the package. |
pascal@15721 | 25 compile_rules() |
pascal@15721 | 26 { |
Hans-G?nter@20823 | 27 cmake . \ |
Hans-G?nter@20823 | 28 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@20823 | 29 -DSYSCONF_INSTALL_DIR=/etc |
Hans-G?nter@20823 | 30 make && |
Hans-G?nter@20823 | 31 make install |
pascal@15721 | 32 } |
pascal@15721 | 33 |
pascal@15721 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 35 genpkg_rules() |
pascal@15721 | 36 { |
pascal@15721 | 37 mkdir -p $fs/usr/share $fs/etc |
pascal@15721 | 38 cp -a $install/usr/bin $fs/usr |
pascal@15721 | 39 cp -a $install/usr/share/doc $fs/usr/share |
pascal@15721 | 40 cp -a $install/usr/share/locale $fs/usr/share |
pascal@15721 | 41 cp -a $install/usr/etc/* $fs/etc |
pascal@15721 | 42 } |