wok view dfc/receipt @ rev 25690
mmv: inserted current_version()
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 15 15:20:24 2024 +0100 (7 months ago) |
parents | 00e3b45c063b |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dfc"
4 VERSION="3.1.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Displays file system space usage using graphs and colors."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/Rolinh/dfc"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 #WGET_URL="https://projects.gw-computing.net/attachments/download/615/$TARBALL"
13 WGET_URL="http://distcache.freebsd.org/ports-distfiles/$TARBALL"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="ncurses-dev cmake gettext"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/rolinh/dfc/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cmake . \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DSYSCONF_INSTALL_DIR=/etc
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share $fs/etc
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/share/doc $fs/usr/share
41 cp -a $install/usr/share/locale $fs/usr/share
42 cp -a $install/usr/etc/* $fs/etc
43 }