wok view compiz-ccsm/receipt @ rev 25703
some perl-*: update web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 04 16:09:04 2024 +0000 (5 months ago) |
parents | 5ea0ce1cecc0 |
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # 0.8.14 to avoid: ERROR Cannot find filename: ccsm.appdata.xml.in
29 sed -i '137d' setup.py
31 ./setup.py install \
32 --prefix=/usr \
33 --with-gtk=2.0 \
34 --root="$DESTDIR"
36 find $DESTDIR -name ccsm.desktop | xargs \
37 sed -i 's#Exec=.*#Exec=sh -c \"ccsm \|\| LC_ALL=C LANG=C ccsm\"#'
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/locale
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/share/ccsm $fs/usr/share
48 cp -a $install/usr/share/icons $fs/usr/share
50 # Set list of wanted locales in LOCALE_PACK
51 . $WOK/slitaz-i18n/stuff/locale-pack.conf
53 # Copy message files in wanted languages, if available
54 for locale in $LOCALE_PACK
55 do
56 [ -d $install/usr/share/locale/$locale ] || continue
57 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
58 done
59 }