#Maintainer: Christopher Rey P. Baluyut pkgname=google-gadgets pkgver=0.11.2 pkgrel=2 zenver=64 arch=i686 source=("http://$pkgname-for-linux.googlecode.com/files/$pkgname-for-linux-$pkgver.tar.bz2") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/shingoku/$pkgname/source docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "THANKS") url="http://code.google.com/p/google-gadgets-for-linux/" doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 fi fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Google Gadgets for Linux" "Google Gadgets for Linux provides a platform for running desktop" "gadgets under Linux, catering to the unique needs of Linux users." "It's compatible with the gadgets written for Google Desktop for" "Windows as well as the Universal Gadgets on iGoogle. Following Linux" "norms, this project is open-sourced under the Apache License." ) build() { cd $startdir/src/$pkgname-for-linux-$pkgver CFLAGS="-O2 -march=i686 -mtune=i686" \ CXXFLAGS="-O2 -march=i686 -mtune=i686" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc \ --docdir=/usr/doc/$startdir-$pkgver \ --mandir=/usr/man \ --disable-static \ --with-browser-plugins-dir=/usr/lib/mozilla/plugins \ --build=$arch-slackware-linux || exit 1 make || exit 1 make install-strip DESTDIR=$startdir/pkg || exit 1 }