wok annotate cbatticon/receipt @ rev 24992
Up sip (4.19.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 14 18:19:29 2022 +0000 (2022-05-14) |
parents | 00a42830d020 |
children | fe1b5660fdd1 |
rev | line source |
---|---|
pascal@20831 | 1 # SliTaz package receipt. |
pascal@20831 | 2 |
pascal@20831 | 3 PACKAGE="cbatticon" |
Hans-G?nter@22582 | 4 VERSION="1.6.10" |
pascal@20831 | 5 CATEGORY="multimedia" |
Hans-G?nter@22582 | 6 SHORT_DESC="A lightweight and fast battery icon for the system tray." |
pascal@20831 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20831 | 8 LICENSE="GPL2" |
Hans-G?nter@22582 | 9 WEB_SITE="https://github.com/valr/cbatticon" |
Hans-G?nter@22582 | 10 |
pascal@20831 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20831 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@20831 | 13 |
Hans-G?nter@22582 | 14 DEPENDS="glib gtk+ libnotify" |
Hans-G?nter@22582 | 15 BUILD_DEPENDS="glib-dev gtk+-dev libnotify-dev" |
pascal@20831 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@20831 | 23 # Rules to configure and make the package. |
pascal@20831 | 24 compile_rules() |
pascal@20831 | 25 { |
pascal@20831 | 26 make WITH_GTK3=0 DESTDIR=$DESTDIR install |
pascal@20831 | 27 } |
pascal@20831 | 28 |
pascal@20831 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20831 | 30 genpkg_rules() |
pascal@20831 | 31 { |
pascal@20831 | 32 mkdir -p $fs/usr/share |
Hans-G?nter@22582 | 33 |
Hans-G?nter@22582 | 34 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22582 | 35 cp -a $install/usr/share/locale $fs/usr/share |
pascal@20831 | 36 } |