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