PKGBUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Maintainer (arch): Lukas Fleischer <lfleischer@archlinux.org>
  2. # Contributor: Kaiting Chen <kaitocracy@gmail.com>
  3. # Contributor: Aaron Schaefer <aaron@elasticdog.com>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # parabola changes and rationale:
  6. # - removing recommendations for python2-boto python2-dropbox and python2-gdata
  7. pkgname=duplicity
  8. pkgver=0.7.15
  9. pkgrel=1.nonprism1
  10. pkgdesc='A utility for encrypted, bandwidth-efficient backups using the rsync algorithm, without python2-boto, python2-dropbox and python2-gdata recommendation'
  11. arch=('x86_64' 'i686' 'armv7h')
  12. url='http://www.nongnu.org/duplicity/'
  13. license=('GPL')
  14. depends=('gnupg' 'librsync' 'ncftp' 'python2-paramiko' 'python2-fasteners')
  15. makedepends=('python2-setuptools')
  16. optdepends=('lftp: FTPS backend'
  17. 'python2-gobject: GIO backend'
  18. 'gvfs: GIO backend'
  19. 'rsync: rsync backend')
  20. source=("https://launchpad.net/$pkgname/0.7-series/${pkgver}/+download/$pkgname-$pkgver.tar.gz"{,.sig})
  21. md5sums=('d106f93627973026707fdcaf37a578bd'
  22. 'SKIP')
  23. validpgpkeys=('9D95920CED4A8D5F8B086A9F8B6F8FF4E654E600')
  24. build() {
  25. cd "${srcdir}/${pkgname}-${pkgver}"
  26. # python2 fix
  27. for file in $(find . -name '*.py' -print); do
  28. sed -i 's_^#!.*/usr/bin/python$_#!/usr/bin/python2_' $file
  29. sed -i 's_^#!.*/usr/bin/env.*python$_#!/usr/bin/env python2_' $file
  30. done
  31. }
  32. package() {
  33. cd "${srcdir}/${pkgname}-${pkgver}"
  34. python2 setup.py install --root="$pkgdir" --optimize=1
  35. # fix broken documentation permissions until upstream does (FS#27301)
  36. chmod 644 "$pkgdir/usr/share/man/man1/$pkgname.1"
  37. chmod 644 "$pkgdir/usr/share/man/man1/rdiffdir.1"
  38. chmod 644 "$pkgdir/usr/share/doc/$pkgname-$pkgver"/*
  39. }