wok annotate bleachbit/receipt @ rev 24373
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 05 16:12:08 2022 +0000 (2022-02-05) |
parents | 859a7c0fa176 |
children | 1be16cc1cd50 |
rev | line source |
---|---|
pascal@11217 | 1 # SliTaz package receipt. |
pascal@11217 | 2 |
pascal@11217 | 3 PACKAGE="bleachbit" |
Hans-G?nter@22547 | 4 VERSION="3.0" |
pascal@11217 | 5 CATEGORY="system-tools" |
Hans-G?nter@22547 | 6 SHORT_DESC="Deletes unneeded files to free disk space and maintain privacy." |
pascal@11217 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15201 | 8 LICENSE="GPL3" |
Hans-G?nter@22547 | 9 WEB_SITE="https://www.bleachbit.org/" |
Hans-G?nter@20746 | 10 |
pascal@11217 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22547 | 12 WGET_URL="https://download.bleachbit.org/$TARBALL" |
pascal@14999 | 13 |
Hans-G?nter@22547 | 14 DEPENDS="pygtk python" |
pascal@11217 | 15 BUILD_DEPENDS="python" |
pascal@11217 | 16 |
pascal@24373 | 17 # What is the latest version available today? |
pascal@24373 | 18 current_version() |
pascal@24373 | 19 { |
pascal@24373 | 20 wget -O - https://www.bleachbit.org/download/source 2>/dev/null | \ |
pascal@24373 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24373 | 22 } |
pascal@24373 | 23 |
pascal@11217 | 24 # Rules to configure and make the package. |
pascal@11217 | 25 compile_rules() |
pascal@11217 | 26 { |
pascal@11217 | 27 make -C po local && |
Hans-G?nter@22547 | 28 make install \ |
Hans-G?nter@22547 | 29 prefix=/usr \ |
Hans-G?nter@22547 | 30 DESTDIR=$DESTDIR |
pascal@11217 | 31 } |
pascal@11217 | 32 |
pascal@11217 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11217 | 34 genpkg_rules() |
pascal@11217 | 35 { |
pascal@11217 | 36 mkdir -p $fs/usr/ |
Hans-G?nter@22547 | 37 |
Hans-G?nter@22547 | 38 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22547 | 39 cp -a $install/usr/share $fs/usr |
pascal@11217 | 40 } |