wok view compiz-plugins-extra/receipt @ rev 25690
mmv: inserted current_version()
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 15 15:20:24 2024 +0100 (6 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz-plugins-extra"
4 VERSION="0.8.14"
5 CATEGORY="x-window"
6 SHORT_DESC="Compiz extra plugins."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/compiz-reloaded"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$WEB_SITE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 WGET_URL2="$WEB_SITE/$PACKAGE/commit/0b2a652.diff"
15 EXTRA_SOURCE_FILES="$PACKAGE-0b2a652.u"
17 DEPENDS="compiz-core compiz-libcompizconfig compiz-plugins-main
18 gtk+ libnotify librsvg xorg-libX11"
19 BUILD_DEPENDS="cmake compiz-bcop compiz-core-dev compiz-libcompizconfig-dev
20 compiz-plugins-main-dev file gtk+-dev intltool libnotify-dev
21 librsvg-dev libtool libxslt-dev mesa-dev startup-notification-dev
22 util-linux-getopt util-linux-uuid-dev xcb-util-dev xorg-dev"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
28 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 # 0.8.12.1
35 # [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
36 # wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
37 # patch -p1 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
39 ./configure --prefix=/usr &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 mkdir -p $fs/usr/share/locale
50 cp -a $install/usr/lib/compiz $fs/usr/lib
51 cp -a $install/usr/share/compiz $fs/usr/share
53 # Set list of wanted locales in LOCALE_PACK
54 . $WOK/slitaz-i18n/stuff/locale-pack.conf
56 # Copy message files in wanted languages, if available
57 for locale in $LOCALE_PACK
58 do
59 [ -d $install/usr/share/locale/$locale ] || continue
60 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
61 done
63 cd $fs/usr/lib/compiz; rm -f *.a *.la
64 }