wok view qdirstat/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (16 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="qdirstat"
4 VERSION="1.5"
5 CATEGORY="base-system"
6 SHORT_DESC="Tools for inspecting and visualizing disk usage."
7 MAINTAINER="xavileonf@gmail.com"
8 LICENSE="LGPL3"
9 WEB_SITE="https://github.com/shundhammer/qdirstat/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/shundhammer/$PACKAGE/archive/$VERSION/$TARBALL"
14 DEPENDS="qt4"
15 BUILD_DEPENDS="Qt4-dev qmake"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export QMAKESPC=/usr/share/qt/mkspecs/linux-g++
28 patch --strip=1 --input=$stuff/patches/qdirstat-1.5.patch &&
29 qmake INSTALL_PREFIX=$DESTDIR/usr &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/share/man $fs/usr/share
40 cp -a $install/usr/share/icons $fs/usr/share
41 cp -a $install/usr/share/applications $fs/usr/share
42 }