wok annotate compiz-ccsm/receipt @ rev 25697

dool: reduced size of package
author Hans-G?nter Theisgen
date Sun May 12 07:10:04 2024 +0100 (2 weeks ago)
parents 5ea0ce1cecc0
children
rev   line source
pascal@11219 1 # SliTaz package receipt.
pascal@11219 2
pascal@11219 3 PACKAGE="compiz-ccsm"
Hans-G?nter@22613 4 VERSION="0.8.14"
pascal@11219 5 CATEGORY="x-window"
Hans-G?nter@22613 6 SHORT_DESC="Compiz Configuration Settings Manager."
pascal@11219 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@22613 9 WEB_SITE="https://github.com/compiz-reloaded/ccsm"
Hans-G?nter@22613 10
psychomaniak@19217 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
psychomaniak@19217 12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/ccsm-$VERSION.tar.xz"
pascal@11219 13
Hans-G?nter@22613 14 DEPENDS="compiz-compizconfig-python compiz-core compiz-libcompizconfig
Hans-G?nter@22613 15 gtk-girepository pygobject3 python"
Hans-G?nter@22613 16 BUILD_DEPENDS="compiz-core-dev compiz-libcompizconfig-dev libtool python-dev"
pankso@13372 17
pascal@25598 18 # What is the latest version available today?
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25598 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 23 }
pascal@24055 24
pascal@11219 25 # Rules to configure and make the package.
pascal@11219 26 compile_rules()
pascal@11219 27 {
Hans-G?nter@22613 28 # 0.8.14 to avoid: ERROR Cannot find filename: ccsm.appdata.xml.in
Hans-G?nter@22613 29 sed -i '137d' setup.py
Hans-G?nter@22613 30
Hans-G?nter@22613 31 ./setup.py install \
Hans-G?nter@22613 32 --prefix=/usr \
Hans-G?nter@22613 33 --with-gtk=2.0 \
Hans-G?nter@22613 34 --root="$DESTDIR"
psychomaniak@19437 35
psychomaniak@19437 36 find $DESTDIR -name ccsm.desktop | xargs \
psychomaniak@19437 37 sed -i 's#Exec=.*#Exec=sh -c \"ccsm \|\| LC_ALL=C LANG=C ccsm\"#'
pascal@11219 38 }
pascal@11219 39
pascal@11219 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11219 41 genpkg_rules()
pascal@11219 42 {
psychomaniak@19217 43 mkdir -p $fs/usr/share/locale
Hans-G?nter@22613 44
Hans-G?nter@22613 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22613 46 cp -a $install/usr/lib $fs/usr
Hans-G?nter@22613 47 cp -a $install/usr/share/ccsm $fs/usr/share
Hans-G?nter@22613 48 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@22613 49
Hans-G?nter@22613 50 # Set list of wanted locales in LOCALE_PACK
Hans-G?nter@22613 51 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22613 52
Hans-G?nter@22613 53 # Copy message files in wanted languages, if available
Hans-G?nter@22613 54 for locale in $LOCALE_PACK
Hans-G?nter@22613 55 do
Hans-G?nter@22613 56 [ -d $install/usr/share/locale/$locale ] || continue
Hans-G?nter@22613 57 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
Hans-G?nter@22613 58 done
pascal@11219 59 }