wok-current annotate dfc/receipt @ rev 25418
duat: use archive.org for web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 05 16:48:05 2022 +0000 (2022-08-05) |
parents | eec3edc6ef52 |
children |
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" |
pascal@24978 | 12 #WGET_URL="https://projects.gw-computing.net/attachments/download/615/$TARBALL" |
pascal@24978 | 13 WGET_URL="http://distcache.freebsd.org/ports-distfiles/$TARBALL" |
pascal@15721 | 14 |
pascal@15721 | 15 DEPENDS="ncurses" |
pascal@15721 | 16 BUILD_DEPENDS="ncurses-dev cmake gettext" |
pascal@15721 | 17 |
pascal@24540 | 18 # What is the latest version available today? |
pascal@24540 | 19 current_version() |
pascal@24540 | 20 { |
pascal@24540 | 21 wget -O - https://github.com/rolinh/dfc/releases 2>/dev/null | \ |
pascal@24540 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24540 | 23 } |
pascal@24540 | 24 |
pascal@15721 | 25 # Rules to configure and make the package. |
pascal@15721 | 26 compile_rules() |
pascal@15721 | 27 { |
Hans-G?nter@20823 | 28 cmake . \ |
Hans-G?nter@20823 | 29 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@20823 | 30 -DSYSCONF_INSTALL_DIR=/etc |
Hans-G?nter@20823 | 31 make && |
Hans-G?nter@20823 | 32 make install |
pascal@15721 | 33 } |
pascal@15721 | 34 |
pascal@15721 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 36 genpkg_rules() |
pascal@15721 | 37 { |
pascal@15721 | 38 mkdir -p $fs/usr/share $fs/etc |
pascal@15721 | 39 cp -a $install/usr/bin $fs/usr |
pascal@15721 | 40 cp -a $install/usr/share/doc $fs/usr/share |
pascal@15721 | 41 cp -a $install/usr/share/locale $fs/usr/share |
pascal@15721 | 42 cp -a $install/usr/etc/* $fs/etc |
pascal@15721 | 43 } |