#Maintainer: Tomoki Tsuchiya pkgname=screenlets pkgver=0.1.5 pkgrel=1tt url="https://launchpad.net/screenlets" docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme' 'PKG-INFO' 'TODO' 'COPYRIGHT') source=(http://launchpad.net/screenlets/trunk/0.1.5/+download/$pkgname-$pkgver.tar.bz2) sourcetemplate=http://people.salixos.org/tsuren/packages/13.37/$pkgname/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (Desktop Widget Engine)" "The Screenlets project is both a Python framework to simplify" "writing Cairo-drawn desktop widgets, similar to those found in" "the "Dashboard" feature of OS:X, and a collection of widgets" "written using the framework. It is designed to work with" "any modern Linux desktop." ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 python setup.py install --root="$startdir/pkg/" install -D -m644 "$startdir/src/Screenlets.directory" "$startdir/pkg/usr/share/desktop-directories/Screenlets.directory" install -D -m644 desktop-menu/screenlets.svg "$startdir/pkg/usr/share/icons/screenlets.svg" install -D -m644 desktop-menu/mono-dark/screenlets-tray.svg "$startdir/pkg/usr/share/icons/screenlets-tray.svg" cd desktop-menu/ for i in $(find -name '*.desktop'); do install -D -m644 $i "$startdir/pkg"/usr/share/applications/$(echo $i | sed 's|./applications||') ; done }