# vim: set syn=sh ai et sw=2 st=2 ts=2 tw=0: #Packager: JRD pkgname=backintime-gnome pkgver=1.0.8 pkgrel=2cp source=(http://backintime.le-web.org/download/$(echo $pkgname|cut -d- -f1)/$(echo $pkgname|cut -d- -f1)-${pkgver}_src.tar.gz README.Thunar) sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("readme" "install" "copying" "changes" "authors" "news" "todo" "license" "copyright" "version" "translations" "README.Thunar") url=http://backintime.le-web.org slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (simple backup tool for Linux)" "This is the front-end for GNOME/GTK." "You could find how to add a custom action in Thunar in" " /usr/doc/$pkgname-$pkgver/" "All you have to do is configure:" " * Where to save snapshot" " * What directories to backup" " * When backup should be done" ) build() { cd $SRC/$(echo $pkgname|cut -d- -f1)-$pkgver/gnome || return 1 install -d $PKG/usr/share/backintime/gnome install -d $PKG/usr/share/backintime/plugins install -d $PKG/usr/share/man/man1 install -d $PKG/usr/bin install -d $PKG/usr/share/applications install --mode=644 *.py $PKG/usr/share/backintime/gnome install --mode=644 *.glade $PKG/usr/share/backintime/gnome install --mode=644 plugins/*.py $PKG/usr/share/backintime/plugins install --mode=644 man/C/*.gz $PKG/usr/share/man/man1 install backintime-gnome $PKG/usr/bin install --mode=644 *.desktop $PKG/usr/share/applications echo 'NotShowIn=KDE' >> $PKG/usr/share/applications/backintime-gnome.desktop echo 'NotShowIn=KDE' >> $PKG/usr/share/applications/backintime-gnome-root.desktop # optimize/compile python cd $PKG/usr/share/backintime cat <<'EOF' | python import compileall compileall.compile_dir("gnome", force=1) compileall.compile_dir("plugins", force=1) EOF find . -type f -name '*.py' -exec rm '{}' \; # wrapper launcher should use .pyc, not .py sed -i 's/\.py /.pyc /' $PKG/usr/bin/backintime-gnome }