wok annotate wbar2/receipt @ rev 25296

updated screenfetch (3.5.0 -> 3.9.1)
author Hans-G?nter Theisgen
date Tue Jul 19 17:51:41 2022 +0100 (2022-07-19)
parents e1e1678c5265
children c965782a38e0
rev   line source
gokhlayeh@8816 1 # SliTaz package receipt.
gokhlayeh@8816 2
gokhlayeh@8816 3 PACKAGE="wbar2"
erjo@15674 4 VERSION="2.3.4"
gokhlayeh@8816 5 CATEGORY="system-tools"
gokhlayeh@8816 6 SHORT_DESC="Quick launch bar."
pankso@16379 7 MAINTAINER="pankso@slitaz.org"
pascal@15363 8 LICENSE="GPL3"
gokhlayeh@8816 9 SOURCE="wbar"
erjo@15674 10 TARBALL="$SOURCE-$VERSION.tgz"
pascal@20679 11 WEB_SITE="https://github.com/rodolf0/wbar"
pascal@24982 12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$SOURCE/$TARBALL"
pankso@9763 13 CONFIG_FILES="/etc/default/wbar/wbar.cfg"
pankso@9763 14 TAGS="desktop launchbar"
pankso@16169 15 HOST_ARCH="i486 arm"
pankso@9763 16
pankso@16169 17 DEPENDS="ttf-dejavu imlib2 gtk+ libglade"
pankso@16379 18 BUILD_DEPENDS="imlib2-dev gtk+-dev libglade-dev"
pankso@16169 19
pankso@16169 20 # Handle cross compilation
pankso@16169 21 case "$ARCH" in
pankso@16379 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool file" ;;
pankso@16169 23 arm*) ARCH_ARGS="--disable-wbar-config" ;;
pankso@16169 24 esac
gokhlayeh@8816 25
pascal@24497 26 # What is the latest version available today?
pascal@24497 27 current_version()
pascal@24497 28 {
pascal@24497 29 wget -O - $WEB_SITE/commits/dev-3.0 2>/dev/null | \
pascal@24974 30 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@24497 31 }
pascal@24497 32
gokhlayeh@8816 33 # Rules to configure and make the package.
gokhlayeh@8816 34 compile_rules()
gokhlayeh@8816 35 {
pankso@16169 36 ./configure \
pankso@16169 37 --exec-prefix=/usr \
pankso@16169 38 --sysconfdir=/etc \
pankso@16379 39 $CONFIGURE_ARGS &&
gokhlayeh@8816 40 make && make install
gokhlayeh@8816 41 }
gokhlayeh@8816 42
gokhlayeh@8816 43 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8816 44 genpkg_rules()
gokhlayeh@8816 45 {
erjo@15699 46 mkdir -p $fs/usr/share $fs/usr/share/applications
erjo@15674 47 cp -a $install/usr/bin $fs/usr
pankso@16169 48 cp -a $install/etc $fs
erjo@15674 49 cp -a $install/usr/share/pixmaps $fs/usr/share
erjo@15674 50 cp -a $install/usr/share/wbar $fs/usr/share
erjo@15699 51 mv $fs/etc/wbar.d/wbar.desktop $fs/usr/share/applications
pankso@16169 52 case "$ARCH" in
pankso@16169 53 i?86) cp -a $stuff/wbar.cfg $fs/etc/wbar.d ;;
pankso@16169 54 arm*) cp -a $stuff/wbar-arm.cfg $fs/etc/wbar.d/wbar.cfg ;;
pankso@16169 55 esac
pankso@9325 56 }