wok-6.x annotate listpatron/receipt @ rev 24780

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