wok annotate lxappearance/receipt @ rev 24071

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 10:35:01 2021 +0000 (2021-07-07)
parents d33c3c211ef8
children db9d9cb3c164
rev   line source
pankso@510 1 # SliTaz package receipt.
pankso@510 2
pankso@510 3 PACKAGE="lxappearance"
pankso@19866 4 VERSION="0.6.3"
pankso@510 5 CATEGORY="x-window"
al@17992 6 SHORT_DESC="LXDE GTK+ theme switcher"
pankso@510 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@23810 9 WEB_SITE="https://wiki.lxde.org/en/LXAppearance"
pankso@16261 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@510 11 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
al@17992 12 TAGS="LXDE"
pankso@16261 13 HOST_ARCH="i486 arm"
al@13719 14
al@13719 15 DEPENDS="gtk+"
al@13694 16 BUILD_DEPENDS="xorg-libX11-dev gtk+-dev"
pankso@510 17
pascal@24071 18 current_version()
pascal@24071 19 {
pascal@24071 20 wget -O - https://sourceforge.net/projects/lxde/files/LXAppearance/ 2>/dev/null | \
pascal@24071 21 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 22 }
pascal@24071 23
pankso@510 24 # Rules to configure and make the package.
pankso@510 25 compile_rules()
pankso@510 26 {
pankso@16261 27 ./configure \
pankso@16261 28 --sysconfdir=/etc \
pankso@16261 29 $CONFIGURE_ARGS &&
pankso@16261 30 make && make install
pankso@510 31 }
pankso@510 32
pankso@510 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@510 34 genpkg_rules()
pankso@510 35 {
al@13694 36 mkdir -p $fs/usr/share
al@13694 37 cp -a $install/usr/bin $fs/usr
al@13694 38 cp -a $install/usr/share/applications $fs/usr/share
al@13694 39 cp -a $install/usr/share/lxappearance $fs/usr/share
pankso@510 40 }