summaryrefslogtreecommitdiff
path: root/community/compiz
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/compiz
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/compiz')
-rw-r--r--community/compiz/PKGBUILD124
-rw-r--r--community/compiz/compiz-decorator-gtk.install28
2 files changed, 152 insertions, 0 deletions
diff --git a/community/compiz/PKGBUILD b/community/compiz/PKGBUILD
new file mode 100644
index 000000000..e693eefae
--- /dev/null
+++ b/community/compiz/PKGBUILD
@@ -0,0 +1,124 @@
+# $Id: PKGBUILD 17032 2010-05-17 11:13:51Z rvanharen $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Hussam Al-Tayeb ht990332@gmail.com
+# Contributor: Khashayar Naderehvandi <khashayar [at] naderehvandi [dot] net>
+# Contributor: JJDaNiMoTh <jjdanimoth.aur@gmail.com>
+
+pkgbase=compiz
+pkgname=('compiz-core'
+ 'compiz-decorator-kde'
+ 'compiz-decorator-gtk')
+pkgver=0.8.6
+pkgrel=2
+pkgdesc="Composite manager for Aiglx and Xgl"
+url="http://www.go-compiz.org/"
+license=('GPL' 'LGPL' 'MIT')
+arch=('i686' 'x86_64')
+groups=('compiz' 'compiz-kde' 'compiz-gtk' 'compiz-fusion')
+makedepends=('intltool' 'gnome-control-center' 'libwnck' 'kdebase-workspace'
+ 'startup-notification' 'librsvg' 'libgl' 'dbus' 'mesa' 'libxslt' 'fuse')
+options=(!libtool !emptydirs)
+conflicts=('compiz' 'compiz-core-git' 'compiz-git')
+replaces=('compiz')
+source=(http://releases.compiz.org/0.8.6/compiz-$pkgver.tar.gz)
+md5sums=('af0586557e0291c47b924e33bccacc60')
+
+build()
+{
+ cd $srcdir/compiz-$pkgver
+
+ ./configure --prefix=/usr \
+ --enable-gnome \
+ --enable-gtk \
+ --enable-metacity \
+ --enable-gconf \
+ --with-gconf-schema-file-dir=/etc/gconf/schemas \
+ --enable-dbus \
+ --enable-librsvg \
+ --disable-kde \
+ --enable-kde4
+
+ make || return 1
+}
+
+package_compiz-core()
+{
+
+ pkgdesc="Composite manager for Aiglx and Xgl"
+ depends=('startup-notification' 'librsvg' \
+ 'libgl' 'dbus' 'mesa' 'libxslt' 'fuse')
+
+ cd $srcdir/compiz-$pkgver
+ make DESTDIR=$pkgdir install
+
+ # remove stuff which is in one of the decorations
+ rm -rf $pkgdir/usr/bin/{gtk-window-decorator,kde4-window-decorator}
+ rm -rf ${pkgdir}/usr/share/{applications,gnome,gnome-control-center}
+ rm -rf ${pkgdir}/usr/lib/{window-manager-settings,pkgconfig/compiz-gconf.pc,compiz/libgconf*}
+ rm -rf ${pkgdir}/etc
+
+ # install MIT license
+ install -Dm644 $srcdir/compiz-$pkgver/COPYING.MIT \
+ $pkgdir/usr/share/licenses/compiz-core/COPYING.MIT
+}
+
+package_compiz-decorator-gtk()
+{
+ pkgdesc="Compiz decorator for GNOME"
+ depends=('gnome-control-center' 'libwnck' 'compiz-core')
+ install=compiz-decorator-gtk.install
+
+ cd $srcdir/compiz-$pkgver
+
+ pushd gtk
+ make DESTDIR=$pkgdir install || return 1
+ install -Dm644 window-decorator/gwd.schemas \
+ $pkgdir/usr/share/gconf/schemas/gwd.schemas
+ popd
+
+ for i in dbus gconf ini inotify png regex svg glib kconfig
+ do
+ rm $srcdir/compiz-$pkgver/metadata/compiz-$i.schemas
+ done
+
+ gconf-merge-schema \
+ ${pkgdir}/usr/share/gconf/schemas/compiz-decorator-gtk.schemas \
+ ${srcdir}/compiz-$pkgver/metadata/*.schemas
+
+ make DESTDIR=$pkgdir install
+
+ # remove stuff which is in one of the other packages
+ rm -rf ${pkgdir}/etc
+ rm -rf $pkgdir/usr/bin/{compiz,kde4-window-decorator}
+ rm -rf $pkgdir/usr/include
+ cd $pkgdir/usr/lib
+ rm libdecoration*
+ rm pkgconfig/{compiz-cube.pc,compiz-scale.pc,compiz.pc,libdecoration.pc} || return 1
+ cd ${pkgdir}/usr/lib/compiz
+ rm `ls --hide=*gconf*`
+ rm -rf ${pkgdir}/usr/share/{compiz,locale}
+
+ # install MIT license
+ install -Dm644 $srcdir/compiz-$pkgver/COPYING.MIT \
+ $pkgdir/usr/share/licenses/compiz-decorator-gtk/COPYING.MIT
+}
+
+package_compiz-decorator-kde()
+{
+ pkgdesc="Compiz decorator for KDE"
+ depends=('kdebase-workspace' 'compiz-core')
+
+ cd $srcdir/compiz-$pkgver
+ make DESTDIR=$pkgdir install
+
+ # Let's remove stuff that are in compiz-core package or gtk decorator
+ rm -rf $pkgdir/usr/{include,lib}
+ rm -rf $pkgdir/usr/bin/{compiz,gtk-window-decorator}
+ rm -rf ${pkgdir}/etc
+ rm -rf ${pkgdir}/usr/share/{applications,gnome,gnome-control-center,locale,compiz}
+
+ # install MIT license
+ install -Dm644 $srcdir/compiz-$pkgver/COPYING.MIT \
+ $pkgdir/usr/share/licenses/compiz-decorator-kde/COPYING.MIT
+}
+
diff --git a/community/compiz/compiz-decorator-gtk.install b/community/compiz/compiz-decorator-gtk.install
new file mode 100644
index 000000000..b3738fda9
--- /dev/null
+++ b/community/compiz/compiz-decorator-gtk.install
@@ -0,0 +1,28 @@
+post_install() {
+ export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+ usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/gwd.schemas > /dev/null
+ usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/compiz-decorator-gtk.schemas > /dev/null
+ kill -s HUP `pidof usr/bin/gconfd-2` > /dev/null 2>&1
+ update-desktop-database -q
+
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+ usr/bin/gconftool-2 --makefile-uninstall-rule usr/share/gconf/schemas/gwd.schemas >/dev/null
+ usr/bin/gconftool-2 --makefile-uninstall-rule usr/share/gconf/schemas/compiz-decorator-gtk.schemas > /dev/null
+}
+
+post_remove() {
+ kill -s HUP `pidof usr/bin/gconfd-2` > /dev/null 2>&1
+ update-desktop-database -q
+}
+