wok-6.x view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz-ccsm"
4 VERSION="0.8.14"
5 CATEGORY="x-window"
6 SHORT_DESC="Compiz Configuration Settings Manager."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/compiz-reloaded/ccsm"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/ccsm-$VERSION.tar.xz"
14 DEPENDS="compiz-compizconfig-python compiz-core compiz-libcompizconfig
15 gtk-girepository pygobject3 python"
16 BUILD_DEPENDS="compiz-core-dev compiz-libcompizconfig-dev libtool python-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # 0.8.14 to avoid: ERROR Cannot find filename: ccsm.appdata.xml.in
28 sed -i '137d' setup.py
30 ./setup.py install \
31 --prefix=/usr \
32 --with-gtk=2.0 \
33 --root="$DESTDIR"
35 find $DESTDIR -name ccsm.desktop | xargs \
36 sed -i 's#Exec=.*#Exec=sh -c \"ccsm \|\| LC_ALL=C LANG=C ccsm\"#'
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/locale
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/usr/share/ccsm $fs/usr/share
47 cp -a $install/usr/share/icons $fs/usr/share
49 # Set list of wanted locales in LOCALE_PACK
50 . $WOK/slitaz-i18n/stuff/locale-pack.conf
52 # Copy message files in wanted languages, if available
53 for locale in $LOCALE_PACK
54 do
55 [ -d $install/usr/share/locale/$locale ] || continue
56 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
57 done
58 }