wok annotate diffuse/receipt @ rev 25457
Normazile https://sourceforge.net/projects web_sites
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 23 08:28:09 2022 +0000 (2022-09-23) |
parents | 1c88796e4a70 |
children | 69e1e705f038 |
rev | line source |
---|---|
Hans-G?nter@24010 | 1 # SliTaz package receipt. |
Hans-G?nter@24010 | 2 |
Hans-G?nter@24010 | 3 PACKAGE="diffuse" |
Hans-G?nter@24010 | 4 VERSION="0.4.8" |
Hans-G?nter@24010 | 5 CATEGORY="utilities" |
Hans-G?nter@24010 | 6 SHORT_DESC="Graphical tool for merging and comparing text files." |
Hans-G?nter@24010 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@24010 | 8 LICENSE="GPLv2+" |
pascal@25457 | 9 WEB_SITE="https://sourceforge.net/projects/diffuse" |
Hans-G?nter@24010 | 10 |
pascal@24994 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24994 | 12 WGET_URL="https://github.com/MightyCreak/diffuse/archive/refs/tags/v$VERSION.tar.gz" |
Hans-G?nter@24010 | 13 |
Hans-G?nter@24010 | 14 DEPENDS="python pygtk" |
Hans-G?nter@24010 | 15 BUILD_DEPENDS="python" |
Hans-G?nter@24010 | 16 |
pascal@24361 | 17 # What is the latest version available today? |
pascal@24361 | 18 current_version() |
pascal@24361 | 19 { |
pascal@24361 | 20 wget -O - https://sourceforge.net/projects/diffuse/files/diffuse/ 2>/dev/null | \ |
pascal@24361 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24361 | 22 sed '/scope="row/!d;s|.*/diffuse/||;s|/.*||;q' |
pascal@24361 | 23 } |
pascal@24361 | 24 |
Hans-G?nter@24010 | 25 # Rules to configure and make the package. |
Hans-G?nter@24010 | 26 compile_rules() |
Hans-G?nter@24010 | 27 { |
Hans-G?nter@24010 | 28 ./install.py \ |
Hans-G?nter@24010 | 29 --destdir=$install \ |
Hans-G?nter@24010 | 30 --prefix=/usr \ |
Hans-G?nter@24010 | 31 --files-only |
Hans-G?nter@24010 | 32 } |
Hans-G?nter@24010 | 33 |
Hans-G?nter@24010 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@24010 | 35 genpkg_rules() |
Hans-G?nter@24010 | 36 { |
Hans-G?nter@24010 | 37 mkdir -p $fs/usr/share |
Hans-G?nter@24010 | 38 |
Hans-G?nter@24010 | 39 cp -a $install/etc $fs |
Hans-G?nter@24010 | 40 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24010 | 41 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@24010 | 42 cp -a $install/usr/share/diffuse $fs/usr/share |
Hans-G?nter@24010 | 43 cp -a $install/usr/share/gnome $fs/usr/share |
Hans-G?nter@24010 | 44 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@24010 | 45 cp -a $install/usr/share/omf $fs/usr/share |
Hans-G?nter@24010 | 46 } |