#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com #Former Maintainer: Shador #Former Maintainer: Mauricio Tricoli pkgname=compiz-core pkgver=0.9.2.1 pkgrel=1 zenver=66 arch=i686 source=("http://releases.compiz.org/$pkgver/compiz-core-$pkgver.tar.bz2") 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-plugins-main,compiz-plugins-extra,compiz-plugins-unsupported,compizconfig-backend-gconf,compizconfig-python,libcompizconfig" 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 mkdir -p build cd build cmake \ -DCMAKE_INSTALL_PREFIX:STRING="/usr" \ -DCMAKE_CXX_FLAGS:STRING="-O2 -march=i486 -mtune=i686" \ -DCMAKE_C_FLAGS:STRING="-O2 -march=i486 -mtune=i686" \ .. make || return 1 make install DESTDIR=$startdir/pkg make findcompiz_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 }