#Maintainer: Dimitris Tzemos pkgname=backintime pkgver=1.0.8 pkgrel=1dj source=("http://backintime.le-web.org/download/${pkgname}/${pkgname}-${pkgver}_src.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname url="http://backintime.le-web.org/" docs=('AUTHORS' 'CHANGES' 'LICENSE' 'README' 'TODO' 'TRANSLATIONS' 'VERSION') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "backintime (simple backup tool)" "Back In Time is a simple backup tool for Linux inspired from" "flyback project and TimeVault. The backup is done by taking" "snapshots of a specified set of directories." "All you have to do is configure where to save snapshot, what" "directories to backup and when backup should be done (manual," "every hour, every day, every week, every month)" "" "HomePage: http://backintime.le-web.org/" ) build() { # Common components cd $startdir/src/${pkgname}-${pkgver}/common ./configure # Fix documentation paths sed -i 's|/share/doc/backintime-common|/doc/'$pkgname'-'$pkgver'|g' \ $startdir/src/${pkgname}-${pkgver}/common/Makefile || return 1 make || return 1 make DESTDIR=$startdir/pkg/ install || return 1 # KDE4 components cd $startdir/src/${pkgname}-${pkgver}/kde4 ./configure # Fix documentation paths sed -i 's|/share/doc/backintime-kde4|/doc/'$pkgname'-'$pkgver'|g' \ $startdir/src/${pkgname}-${pkgver}/kde4/Makefile || return 1 make || return 1 make DESTDIR=$startdir/pkg/ install || return 1 #Patch for python2 sed -e 's|^python |python2 |g' -i $startdir/pkg/usr/bin/* || return 1 } doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/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 }