wok annotate tsclient/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 86790a278e70
children 6023b31d568c
rev   line source
pankso@166 1 # SliTaz package receipt.
pankso@166 2
pankso@166 3 PACKAGE="tsclient"
pankso@166 4 VERSION="0.150"
pankso@203 5 CATEGORY="network"
pankso@166 6 SHORT_DESC="GTK frontend to rdesktop and other remote desktop tools."
pankso@166 7 MAINTAINER="pankso@slitaz.org"
pascal@15590 8 LICENSE="GPL2"
pankso@166 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/tsclient/"
pankso@166 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4973 12 TAGS="remote-desktop"
pankso@166 13
pascal@15590 14 DEPENDS="gtk+ rdesktop xorg-libXdamage"
pascal@15590 15 BUILD_DEPENDS="gtk+ gtk+-dev perl-xml-parser pkg-config"
pascal@15590 16
pascal@24340 17 # What is the latest version available today?
pascal@24340 18 current_version()
pascal@24340 19 {
pascal@24340 20 wget -O - https://sourceforge.net/projects/tsclient/files/tsclient/ 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 22 sed '/scope="row/!d;s|.*/tsclient/||;s|/.*||;q'
pascal@24340 23 }
pascal@24340 24
pankso@166 25 # Rules to configure and make the package.
pankso@166 26 compile_rules()
pankso@166 27 {
pankso@166 28 cd $src
pankso@166 29 ./configure \
pankso@166 30 --prefix=/usr \
pankso@166 31 --libexecdir=/usr/lib/$PACKAGE \
pankso@166 32 --mandir=/usr/share/man \
pankso@166 33 --disable-gnome \
pascal@1465 34 $CONFIGURE_ARGS &&
pascal@1465 35 make &&
pascal@15590 36 make DESTDIR=$DESTDIR install
pankso@166 37 }
pankso@166 38
pankso@166 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@166 40 genpkg_rules()
pankso@166 41 {
pankso@166 42 mkdir -p $fs/usr/share/locale $fs/usr/lib
pascal@15590 43 cp -a $install/usr/bin $fs/usr
pascal@15590 44 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
pascal@15590 45 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
pascal@15590 46 cp -a $install/usr/share/pixmaps $fs/usr/share
pascal@15590 47 cp -a $install/usr/share/applications $fs/usr/share
pankso@166 48 strip -s $fs/usr/lib/$PACKAGE/*
pankso@166 49 }