wok annotate compiz-ccsm/receipt @ rev 25134

updated phpeasyvcs (1.0 -> 2.0)
author Hans-G?nter Theisgen
date Wed Jun 29 10:51:43 2022 +0100 (2022-06-29)
parents cdbaf97bfe46
children fe1b5660fdd1
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@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pascal@11219 24 # Rules to configure and make the package.
pascal@11219 25 compile_rules()
pascal@11219 26 {
Hans-G?nter@22613 27 # 0.8.14 to avoid: ERROR Cannot find filename: ccsm.appdata.xml.in
Hans-G?nter@22613 28 sed -i '137d' setup.py
Hans-G?nter@22613 29
Hans-G?nter@22613 30 ./setup.py install \
Hans-G?nter@22613 31 --prefix=/usr \
Hans-G?nter@22613 32 --with-gtk=2.0 \
Hans-G?nter@22613 33 --root="$DESTDIR"
psychomaniak@19437 34
psychomaniak@19437 35 find $DESTDIR -name ccsm.desktop | xargs \
psychomaniak@19437 36 sed -i 's#Exec=.*#Exec=sh -c \"ccsm \|\| LC_ALL=C LANG=C ccsm\"#'
pascal@11219 37 }
pascal@11219 38
pascal@11219 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11219 40 genpkg_rules()
pascal@11219 41 {
psychomaniak@19217 42 mkdir -p $fs/usr/share/locale
Hans-G?nter@22613 43
Hans-G?nter@22613 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22613 45 cp -a $install/usr/lib $fs/usr
Hans-G?nter@22613 46 cp -a $install/usr/share/ccsm $fs/usr/share
Hans-G?nter@22613 47 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@22613 48
Hans-G?nter@22613 49 # Set list of wanted locales in LOCALE_PACK
Hans-G?nter@22613 50 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22613 51
Hans-G?nter@22613 52 # Copy message files in wanted languages, if available
Hans-G?nter@22613 53 for locale in $LOCALE_PACK
Hans-G?nter@22613 54 do
Hans-G?nter@22613 55 [ -d $install/usr/share/locale/$locale ] || continue
Hans-G?nter@22613 56 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
Hans-G?nter@22613 57 done
pascal@11219 58 }