#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com #Former Maintainer: Shador #Former Maintainer: Mauricio Tricoli pkgname=emerald pkgver=0.8.4 pkgrel=1 zenver=66 arch=i686 source=("http://releases.compiz.org/$pkgver/emerald-$pkgver.tar.bz2" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/emerald-0.8.4-gtk220.patch" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/emerald-0.8.4-gtk222.patch" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/emerald-0.8.4-linking.patch" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname/81775d407f775bad1e6f6ba3345b891b66bb5faf.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "version") url="http://compiz-fusion.org" sourcetemplate="http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname" extradepends="compiz" CFLAGS="-O2 -march=i686 -mtune=i686" CXXFLAGS="-O2 -march=i686 -mtune=i686" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - window decorator for Compiz-Fusion" "Emerald is a window decorator for Compiz-Fusion. It comes with a" "themes editor called emerald-theme-manager and the decorator." ) doinst() { update-mime-database /usr/share/mime } 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 < ../emerald-0.8.4-gtk220.patch patch -p1 < ../emerald-0.8.4-gtk222.patch patch -p1 < ../emerald-0.8.4-linking.patch patch -p1 < ../81775d407f775bad1e6f6ba3345b891b66bb5faf.patch ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-static make -j $threadcount || return 1 make install DESTDIR=$startdir/pkg icondir=$startdir/pkg/usr/share/icons/hicolor mkdir -p $icondir mv $startdir/pkg/usr/share/pixmaps/emerald-theme-manager-icon.png $icondir rm -r $startdir/pkg/usr/share/pixmaps cd $icondir for size in 16x16 24x24 32x32 48x48 64x64; do mkdir -p $size/apps convert emerald-theme-manager-icon.png -resize $size -depth 8 $size/apps/emerald-theme-manager.png done rm emerald-theme-manager-icon.png cat <<"EOF" > $startdir/pkg/usr/share/applications/emerald-theme-manager.desktop [Desktop Entry] Name=Emerald Theme Manager Comment=Manager for the themes of the emerald window decorator Exec=emerald-theme-manager Icon=emerald-theme-manager Terminal=false Type=Application Categories=Application;System; EOF }