wok view gnome-hearts/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | e3f377fbc5f0 |
children | 65ff25c4de90 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gnome-hearts"
4 VERSION="0.3.1"
5 CATEGORY="games"
6 LICENSE="GPL3"
7 SHORT_DESC="GNOME hearts card game."
8 MAINTAINER="yuripourre@gmail.com"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20131231235520/http://www.jejik.com/gnome-hearts"
11 WGET_URL="http://www.jejik.com/files/gnome-hearts/$TARBALL"
13 DEPENDS="gtk+ libglade python libgnomeui libgnome-keyring librsvg"
14 BUILD_DEPENDS="gtk+-dev libglade-dev python-dev libgnome-dev \
15 libgnomeui-dev glib-dev itstool rarian-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://www.jejik.com/gnome-hearts/download/ 2>/dev/null | \
21 sed '/gnome-hearts-[0-9]/!d;s|.*hearts-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --disable-scrollkeeper \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/pixmaps $fs/usr/share
39 cp -a $install/usr/share/$PACKAGE $fs/usr/share
40 cp -a $install/usr/share/applications $fs/usr/share
41 }