wok annotate compiz-ccsm/receipt @ rev 23492

python-bcrypt: added build dependencies
author Hans-G?nter Theisgen
date Mon Apr 06 06:26:59 2020 +0100 (2020-04-06)
parents c38559793ba8
children 5ea0ce1cecc0
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@11219 18 # Rules to configure and make the package.
pascal@11219 19 compile_rules()
pascal@11219 20 {
Hans-G?nter@22613 21 # 0.8.14 to avoid: ERROR Cannot find filename: ccsm.appdata.xml.in
Hans-G?nter@22613 22 sed -i '137d' setup.py
Hans-G?nter@22613 23
Hans-G?nter@22613 24 ./setup.py install \
Hans-G?nter@22613 25 --prefix=/usr \
Hans-G?nter@22613 26 --with-gtk=2.0 \
Hans-G?nter@22613 27 --root="$DESTDIR"
psychomaniak@19437 28
psychomaniak@19437 29 find $DESTDIR -name ccsm.desktop | xargs \
psychomaniak@19437 30 sed -i 's#Exec=.*#Exec=sh -c \"ccsm \|\| LC_ALL=C LANG=C ccsm\"#'
pascal@11219 31 }
pascal@11219 32
pascal@11219 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11219 34 genpkg_rules()
pascal@11219 35 {
psychomaniak@19217 36 mkdir -p $fs/usr/share/locale
Hans-G?nter@22613 37
Hans-G?nter@22613 38 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22613 39 cp -a $install/usr/lib $fs/usr
Hans-G?nter@22613 40 cp -a $install/usr/share/ccsm $fs/usr/share
Hans-G?nter@22613 41 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@22613 42
Hans-G?nter@22613 43 # Set list of wanted locales in LOCALE_PACK
Hans-G?nter@22613 44 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22613 45
Hans-G?nter@22613 46 # Copy message files in wanted languages, if available
Hans-G?nter@22613 47 for locale in $LOCALE_PACK
Hans-G?nter@22613 48 do
Hans-G?nter@22613 49 [ -d $install/usr/share/locale/$locale ] || continue
Hans-G?nter@22613 50 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
Hans-G?nter@22613 51 done
pascal@11219 52 }