wok view diffuse/receipt @ rev 25306

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