1 # Contributor: Andrew West <andrew@keyboardcowboy.co.uk>
7 pkgdesc="Not So Simple Backup suite, is a backup solution for common desktop use."
9 url="https://launchpad.net/nssbackup"
12 depends=( 'python' 'gzip' )
13 makedepends=( 'sed' 'setuptools' )
18 backup=( '/etc/nssbackup.conf' )
21 source=(http://launchpad.net/$pkgname/$pkgver/$pkgver$_subpkgver/+download/${pkgname}_$pkgver-0~$_subpkgver.orig.tar.gz)
23 md5sums=('c7fac4bda21350022eda110c56739763')
26 cd "$srcdir/$pkgname-$pkgver-0.orig"
28 # Fix install location
29 sed -i "s|/usr/local|${pkgdir}/usr|g" Makefile
31 # Use pacman to get package lists
32 sed -i "s|dpkg --get-selections|pacman -Q|" src/nssbackup/managers/BackupManager.py
35 sed -i 's|getgrnam("admin")|getgrnam("adm")|' src/nssbackup/managers/BackupManager.py
36 sed -i "s|'admin'|'adm')|" src/nssbackup/managers/BackupManager.py
41 make install || return 1
45 # Rewrite the resource file to use the correct install directory
46 echo "aoeua ${pkgdir}"
47 sed -i "s|^${pkgdir}/usr|/usr|g" ${pkgdir}/usr/lib/python2.6/site-packages/nssbackup/ressources
50 # vim:set ts=2 sw=2 et: