wok diff compiz-core/receipt @ rev 19361

Up tazpkg (919)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 03 08:46:48 2016 +0200 (2016-08-03)
parents d3eb5f4b53ea
children 1fdc9611ce78
line diff
     1.1 --- a/compiz-core/receipt	Thu Mar 26 09:34:19 2015 +0100
     1.2 +++ b/compiz-core/receipt	Wed Aug 03 08:46:48 2016 +0200
     1.3 @@ -1,49 +1,40 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="compiz-core"
     1.7 -VERSION="0.9.4"
     1.8 +VERSION="0.8.12.3"
     1.9  CATEGORY="x-window"
    1.10  SHORT_DESC="Compiz is an OpenGL compositing manager for 3D effect."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="MIT GPL LGPL"
    1.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 -WEB_SITE="http://www.compiz.org/"
    1.15 -WGET_URL="http://releases.compiz.org/$VERSION/$TARBALL"
    1.16 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.17 +WEB_SITE="https://github.com/compiz-reloaded"
    1.18 +WGET_URL="$WEB_SITE/compiz/releases/download/v$VERSION/compiz-$VERSION.tar.xz"
    1.19  
    1.20 -DEPENDS="librsvg libxslt startup-notification libboost-serialization \
    1.21 -glibmm mesa emerald dbus dbus-glib"
    1.22 -BUILD_DEPENDS="xorg-dev cmake intltool librsvg-dev libxslt-dev \
    1.23 -startup-notification-dev libboost-dev libboost-serialization-dev \
    1.24 -glibmm-dev mesa-dev file dbus-dev dbus-glib-dev"
    1.25 +DEPENDS="librsvg libxslt mesa libglu-mesa dbus dbus-glib startup-notification \
    1.26 +compiz-bcop compiz-libcompizconfig"
    1.27 +BUILD_DEPENDS="xorg-dev intltool librsvg-dev libxslt-dev pango-dev libtool \
    1.28 +startup-notification-dev mesa-dev file dbus-dev dbus-glib-dev cairo-dev \
    1.29 +util-linux-uuid-dev"
    1.30  
    1.31  # Rules to configure and make the package.
    1.32  compile_rules()
    1.33  {
    1.34 -	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    1.35 -	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
    1.36 -
    1.37 -	patch $src/include/compiz.h <<EOT
    1.38 ---- compiz.h
    1.39 -+++ compiz.h
    1.40 -@@ -0,0 +1 @@
    1.41 -+#include <dirent.h>
    1.42 -EOT
    1.43 -	mkdir build && cd build
    1.44 -	cmake \
    1.45 -		-DCMAKE_INSTALL_PREFIX="/usr" \
    1.46 -		-DCOMPIZ_DISABLE_PLUGIN_KDE=ON \
    1.47 -		-DCOMPIZ_DESTDIR="../../install" .. &&
    1.48 -	make -j 1 && make install &&
    1.49 -	make findcompiz_install
    1.50 +	./configure --prefix=/usr --enable-shared --enable-librsvg \
    1.51 +		--enable-dbus --enable-dbus-glib --enable-glib \
    1.52 +		--disable-static --disable-inotify
    1.53 +	make && make install
    1.54  }
    1.55  
    1.56  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.57  genpkg_rules()
    1.58  {
    1.59 -	mkdir -p $fs/usr/lib $fs/usr/share
    1.60 +	mkdir -p $fs/usr/lib $fs/usr/share/locale
    1.61  	cp -a $install/usr/bin $fs/usr
    1.62  	cp -a $install/usr/lib/compiz $fs/usr/lib
    1.63  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.64  	cp -a $install/usr/share/compiz $fs/usr/share
    1.65 -	rm -rf $fs/usr/share/compiz/cmake
    1.66 +	cp -a $install/usr/share/icons $fs/usr/share
    1.67 +	cp -a $install/usr/share/locale/ru $fs/usr/share
    1.68 +	rm -rf $fs/usr/lib/compiz/*.la
    1.69 +	sed 's|bash|sh|' -i $fs/usr/bin/compiz-decorator
    1.70  }