#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com #Former Maintainer: Shador #Former Maintainer: Mauricio Tricoli pkgname=compiz pkgver=0.8.4 pkgrel=1 zenver=64 arch=i686 source=("http://releases.compiz.org/$pkgver/compiz-$pkgver.tar.bz2" "http://upload.wikimedia.org/wikipedia/commons/4/42/Compiz_logo.svg" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/010-disable-child-window-clipping.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/017_always_unredirect_screensaver_on_nvidia.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/037_fullscreen_stacking_fixes.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/012_snap-by-default.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/018_use_metacity_settings.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/049-damage-report-non-empty.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/013-add-cursor-theme-support.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/020_disable_gdk_gtk_disable_deprecated" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/020_fix_focus.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/050_stacking.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/014-fix-gtk-window-decorator-no-argb-crash.patch 020_fix_focus.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/060_move_checks_to_compiz.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/014_fix-no-border-window-shadow.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/029_default_options.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/061_KWD_stubs.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/015_draw_dock_shadows_on_desktop.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/030_from_git_crash_fix_multiscreen.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/562027-fix-gconf-ftbfs.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/015_optional-fbo.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/016_call_glxwaitx_before_drawing.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/031_from_git_fix_gnome_keybindings.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/035_ignore_workspaces.patch") docs=("install" "copying" "authors" "news" "changelog" "readme" "todo") url="http://compiz-fusion.org" sourcetemplate="http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname" extradepends="ccsm,compiz,compiz-bcop,compiz-plugins-main,compiz-plugins-extra,compiz-plugins-unsupported,compizconfig-backend-gconf,compizconfig-python,emerald,libcompizconfig,simple-ccsm" CFLAGS="-O2 -march=i686 -mtune=i686" CXXFLAGS="-O2 -march=i686 -mtune=i686" options=('noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - OpenGL window and compositing manager" "Compiz is a compositing window manager that uses 3D graphics" "acceleration via OpenGL." "Compiz provides various new graphical effects and features on any" "desktop environment. It also has a flexible plug-in system and it is" "designed to run well on most graphics hardware." ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi cd $startdir/src/$pkgname-$pkgver patch -p1 < ../010-disable-child-window-clipping.patch patch -p1 < ../012_snap-by-default.patch #patch -p1 < ../013-add-cursor-theme-support.patch patch -p1 < ../014-fix-gtk-window-decorator-no-argb-crash.patch patch -p1 < ../014_fix-no-border-window-shadow.patch patch -p1 < ../015_draw_dock_shadows_on_desktop.patch patch -p1 < ../015_optional-fbo.patch patch -p1 < ../016_call_glxwaitx_before_drawing.patch patch -p1 < ../017_always_unredirect_screensaver_on_nvidia.patch patch -p1 < ../018_use_metacity_settings.patch patch -p1 < ../020_disable_gdk_gtk_disable_deprecated patch -p1 < ../020_fix_focus.patch patch -p1 < ../037_fullscreen_stacking_fixes.patch patch -p1 < ../049-damage-report-non-empty.patch patch -p1 < ../050_stacking.patch patch -p1 < ../060_move_checks_to_compiz.patch patch -p1 < ../029_default_options.patch patch -p1 < ../061_KWD_stubs.patch patch -p1 < ../030_from_git_crash_fix_multiscreen.patch patch -p1 < ../562027-fix-gconf-ftbfs.patch patch -p1 < ../031_from_git_fix_gnome_keybindings.patch patch -p1 < ../035_ignore_workspaces.patch ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --enable-librsvg --enable-gtk \ --disable-schemas-install --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-kde --disable-kde4 --disable-static make -j $threadcount || return 1 make install DESTDIR=$startdir/pkg # gconf stuff export GCONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/gconf/gconf.xml.defaults" if [ -d $startdir/pkg/etc/gconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/gconf/gconf.xml.defaults SCHEMAS=$startdir/pkg/etc/gconf/schemas for schema in $SCHEMAS/*.schemas; do gconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/gconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/gconf ; find . -type f -exec chmod 644 {} \; ) fi icondir=$startdir/pkg/usr/share/icons/hicolor scaldir=$icondir/scalable/apps mkdir -p $scaldir appdir=$startdir/pkg/usr/share/applications mkdir -p $appdir bindir=$startdir/pkg/usr/bin mkdir -p $bindir cd .. cp Compiz_logo.svg $scaldir/compiz.svg cd $icondir for size in 16x16 24x24 32x32 48x48 64x64; do mkdir -p $size/apps rsvg-convert -a -w 48 -h 48 -f png $scaldir/compiz.svg -o $size/apps/compiz.png done }