wok-current annotate quarry/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | 63cdeb5a1e77 |
children | 7689fec2e794 |
rev | line source |
---|---|
pascal@4569 | 1 # SliTaz package receipt. |
pascal@4569 | 2 |
pascal@4569 | 3 PACKAGE="quarry" |
pascal@4569 | 4 VERSION="0.2.0" |
pascal@4569 | 5 CATEGORY="games" |
al@17261 | 6 SHORT_DESC="Multi-purpose GUI for Go, Amazons and Reversi." |
pascal@4569 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="GPL2" |
pascal@4569 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20947 | 10 WEB_SITE="https://web.archive.org/web/20170506152503/http://home.gna.org/quarry/" |
pascal@4569 | 11 WGET_URL="http://download.gna.org/$PACKAGE/$TARBALL" |
pascal@15601 | 12 SUGGESTED="gnugo" |
pascal@15601 | 13 |
pascal@4569 | 14 DEPENDS="gtk+ librsvg libgsf xcb-util" |
pascal@4569 | 15 BUILD_DEPENDS="gtk+-dev librsvg-dev libgsf" |
pascal@4569 | 16 |
pascal@24535 | 17 # What is the latest version available today? |
pascal@24535 | 18 current_version() |
pascal@24535 | 19 { |
pascal@24535 | 20 wget -O - https://github.com/ejona86/quarry/tags 2>/dev/null | \ |
pascal@24535 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24535 | 22 } |
pascal@24535 | 23 |
pascal@4569 | 24 # Rules to configure and make the package. |
pascal@4569 | 25 compile_rules() |
pascal@4569 | 26 { |
pascal@4570 | 27 sed -i 's/mozilla/firefox/' src/gui-gtk/gtk-help.c |
pascal@4569 | 28 ./configure \ |
pascal@4569 | 29 --prefix=/usr \ |
pascal@4569 | 30 --libexecdir=/usr/lib \ |
pascal@4569 | 31 --infodir=/usr/share/info \ |
pascal@4569 | 32 --mandir=/usr/share/man \ |
pascal@4569 | 33 --enable-sgf-utils \ |
pascal@4569 | 34 $CONFIGURE_ARGS && |
pascal@4569 | 35 make && |
pascal@15601 | 36 make DESTDIR=$DESTDIR install |
pascal@4569 | 37 } |
pascal@4569 | 38 |
pascal@4569 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4569 | 40 genpkg_rules() |
pascal@4569 | 41 { |
al@17261 | 42 mkdir -p $fs/usr/share |
al@17261 | 43 cp -a $install/usr/bin $fs/usr |
al@17261 | 44 cp -a $install/usr/share/quarry $fs/usr/share |
pascal@4569 | 45 } |