wok view listpatron/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 | 2a5cc8208d36 |
children | 9981cfce1dd8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="listpatron"
4 VERSION="0.1.1"
5 CATEGORY="office"
6 SHORT_DESC="GTK+2 application for maintaining lists of information.."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.electricmonk.nl/Programmings/ListPatron"
11 WGET_URL="http://projects.electricmonk.nl/projects/$PACKAGE/$TARBALL"
13 DEPENDS="gtk+ xorg-libXdamage"
14 BUILD_DEPENDS="gtk+-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/fboender/listpatron/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure \
28 --prefix=/usr \
29 --libexecdir=/usr/lib/$PACKAGE \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/applications
39 cp -a $stuff/listpatron.desktop $fs/usr/share/applications
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/pixmaps $fs/usr/share
42 cp -a $install/usr/share/xml $fs/usr/share
43 cd $fs/usr/share/pixmaps
44 ln -s listpatron/icons/listpatron-col-add.png listpatron.png
45 }