wok view meld/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 16df76e1fc6a
children b77195a00671
line source
1 # SliTaz package receipt.
3 PACKAGE="meld"
4 VERSION="1.6.0"
5 CATEGORY="development"
6 SHORT_DESC="Visual diff and merge tool for GNOME."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://meldmerge.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION.*}/$TARBALL"
13 DEPENDS="pygtk rarian"
14 BUILD_DEPENDS="pygtk-dev rarian-dev gnome-doc-utils intltool pkg-config \
15 util-linux-getopt"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make prefix=/usr && make prefix=/usr DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib $fs/usr
35 cp -a $install/usr/share/meld $fs/usr/share
36 }