wok-6.x annotate 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
rev   line source
ben@5738 1 # SliTaz package receipt.
ben@5738 2 PACKAGE="git-gui"
Hans-G?nter@21147 3 VERSION="0.21.0"
ben@5738 4 CATEGORY="development"
ben@5738 5 SHORT_DESC="Graphical interface for the Git dRCS."
ben@5738 6 MAINTAINER="ben@seawolfsanctuary.com"
pascal@15600 7 LICENSE="BSD"
Hans-G?nter@21147 8 WEB_SITE="https://www.kernel.org/pub/software/scm/git/docs/git-gui.html"
Hans-G?nter@21147 9
pascal@15661 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@21183 11 WGET_URL="git|git://repo.or.cz/git-gui.git"
slaxemulator@8590 12 BRANCH="gitgui-$VERSION"
ben@5738 13
pascal@15600 14 DEPENDS="tk git"
pascal@15600 15 BUILD_DEPENDS="$DEPENDS"
pascal@15600 16
pascal@24545 17 # What is the latest version available today?
pascal@24545 18 current_version()
pascal@24545 19 {
pascal@24545 20 wget -O - $WEB_SITE/shortlog 2>/dev/null | \
pascal@24545 21 sed '/<td title=/!d;s|.*<i>||;s|</.*||;s|-||g;q'
pascal@24545 22 }
pascal@24545 23
ben@5738 24 # Rules to configure and make the package.
ben@5738 25 compile_rules()
ben@5738 26 {
ben@5738 27 make clean
Hans-G?nter@21147 28 make -j 1 &&
Hans-G?nter@21147 29 make DESTDIR=$DESTDIR install
ben@5738 30 }
ben@5738 31
ben@5738 32 # Rules to gen a SliTaz package suitable for Tazpkg.
ben@5738 33 genpkg_rules()
ben@5738 34 {
ben@5738 35 mkdir -p $fs
pascal@15600 36 cp -a $install/usr $fs/
ben@5738 37
ben@5738 38 # Extra icons, .desktop file etc.:
slaxemulator@9700 39 cp -a $stuff/* $fs/usr
ben@5738 40
gokhlayeh@12066 41 mkdir -p $fs/usr/bin
Hans-G?nter@21147 42
Hans-G?nter@21147 43 ln -s /usr/lib/git-core/git-gui \
Hans-G?nter@21147 44 /usr/lib/git-core/git-citool \
Hans-G?nter@21147 45 /usr/lib/git-core/git-gui--askpass \
Hans-G?nter@21147 46 $fs/usr/bin
ben@5738 47 }