wok view git-gui/receipt @ rev 24545

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 19:32:16 2022 +0000 (2022-02-24)
parents 885b9c168e82
children bc2b9d9bed6f
line source
1 # SliTaz package receipt.
2 PACKAGE="git-gui"
3 VERSION="0.21.0"
4 CATEGORY="development"
5 SHORT_DESC="Graphical interface for the Git dRCS."
6 MAINTAINER="ben@seawolfsanctuary.com"
7 LICENSE="BSD"
8 WEB_SITE="https://www.kernel.org/pub/software/scm/git/docs/git-gui.html"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|git://repo.or.cz/git-gui.git"
12 BRANCH="gitgui-$VERSION"
14 DEPENDS="tk git"
15 BUILD_DEPENDS="$DEPENDS"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/shortlog 2>/dev/null | \
21 sed '/<td title=/!d;s|.*<i>||;s|</.*||;s|-||g;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make clean
28 make -j 1 &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs
36 cp -a $install/usr $fs/
38 # Extra icons, .desktop file etc.:
39 cp -a $stuff/* $fs/usr
41 mkdir -p $fs/usr/bin
43 ln -s /usr/lib/git-core/git-gui \
44 /usr/lib/git-core/git-citool \
45 /usr/lib/git-core/git-gui--askpass \
46 $fs/usr/bin
47 }