#Packager: Dimitris Tzemos (djemos~at~slackel~dot~gr) pkgname=luckybackup pkgver=0.4.7 pkgrel=1dj source=("http://garr.dl.sourceforge.net/project/luckybackup/$pkgver/source/$pkgname-$pkgver.tar.gz" "luckybackup.pro.patch" "gnome-desktop.patch") docs=("README" "TRANSLATIONS" "CHANGELOG" "AUTHORS" "TODO") url=http://luckybackup.sourceforge.net slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "luckybackup (backup tool)" "luckybackup is a powerful, fast and, reliable backup & sync" "tool that relies on rsync. It is written and maintained by" "Loukas Avgeriou. The program has a graphical frontend as" "well as a commandline frontend." "" "Homepage: http://luckybackup.sourceforge.net" ) build() { cd $startdir/src/$pkgname-$pkgver # patch luckybackup-gnome-su.desktop to work in xfce patch -p1 < $startdir/src/gnome-desktop.patch || return 1 # luckybackup source contains a qmake project file with some # folders hardwired. Let's change them to the Slackware defaults: patch -p0 < $startdir/src/luckybackup.pro.patch || return 1 sed -i "s/PROGVERSION/$pkgver/" ./luckybackup.pro || return 1 sed -i "s,/usr/share/doc/luckybackup/manual,/usr/doc/luckybackup-$pkgver/manual,g" src/global.h src/helpBrowser.cpp || return 1 qmake luckybackup.pro \ QMAKE_CFLAGS="$SLKCFLAGS" \ QMAKE_CXXFLAGS="$SLKCFLAGS" make -j $numjobs || return 1 make install INSTALL_ROOT=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1 mv $startdir/pkg/usr/share/pixmaps/*.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1 sed -i "s/Icon=.*/Icon=luckybackup/" $startdir/pkg/usr/share/applications/luckybackup.desktop || return 1 sed -i "s/Icon=.*/Icon=luckybackup/" $startdir/pkg/usr/share/applications/luckybackup-gnome-su.desktop || return 1 sed -i "s/Icon=.*/Icon=luckybackup/" $startdir/pkg/usr/share/applications/luckybackup-kde-su.desktop || return 1 }