wok-6.x annotate linuxdcpp/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | 051931e905b0 |
children | 55841ecdccb4 |
rev | line source |
---|---|
pankso@4091 | 1 # SliTaz package receipt. |
pankso@4091 | 2 |
pankso@4091 | 3 PACKAGE="linuxdcpp" |
pankso@4091 | 4 VERSION="1.0.3" |
pankso@4091 | 5 CATEGORY="network" |
pankso@4091 | 6 SHORT_DESC="Direct Connect client based on DC++." |
pankso@4091 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pascal@5030 | 9 DEPENDS="gtk+ libglade openssl gcc-lib-base bzlib" |
pascal@12457 | 10 BUILD_DEPENDS="gtk+-dev libglade-dev openssl-dev scons libglade bzlib bzip2-dev" |
pankso@4091 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@4091 | 12 WEB_SITE="https://launchpad.net/linuxdcpp" |
pankso@4091 | 13 WGET_URL="http://mirror.slitaz.org/sources/packages/l/$TARBALL" |
pascal@24434 | 14 |
pascal@24434 | 15 # What is the latest version available today? |
pascal@24434 | 16 current_version() |
pascal@24434 | 17 { |
pascal@24434 | 18 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24434 | 19 sed '/Latest version is/!d;s|.*is ||' |
pascal@24434 | 20 } |
pascal@24434 | 21 |
pankso@4091 | 22 # Rules to configure and make the package. |
pankso@4091 | 23 compile_rules() |
pankso@4091 | 24 { |
pankso@4091 | 25 cd $src |
pascal@15602 | 26 mkdir -p $DESTDIR/usr |
pankso@4091 | 27 scons PREFIX=/usr && |
pascal@15602 | 28 scons PREFIX=$DESTDIR/usr install |
pankso@4091 | 29 } |
pankso@4091 | 30 |
pankso@4091 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4091 | 32 genpkg_rules() |
pankso@4091 | 33 { |
pankso@4091 | 34 mkdir -p $fs/usr/share/pixmaps |
pascal@15603 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15603 | 36 cp -a $install/usr/share/linuxdcpp $fs/usr/share |
pankso@4091 | 37 cd $fs/usr/share/pixmaps |
pankso@4091 | 38 ln -s ../linuxdcpp/pixmaps/linuxdcpp.png . |
pankso@4091 | 39 } |