1 # Contributor: SanskritFritz (gmail)
6 pkgdesc="Clipboard manager that stores all clipboard history and offers an interface to do a full-text search."
8 url=http://anamnesis.sourceforge.net/
10 depends=('python2' 'pygtk' 'pyxdg' 'sqlite3')
11 optdepends=('xclip: for clipboard_implementation=gtk_xclip')
13 provides=('anamnesis')
14 conflicts=('anamnesis')
15 backup=('usr/share/anamnesis/anamnesis.cfg')
17 install='anamnesis.install'
22 # This way makepkg will update the PKGBUILD automatically to the last bzr version:
23 _bzrtrunk="bzr://$_pkgname.bzr.sourceforge.net/bzrroot/$_pkgname"
28 if [ ! -d ./$_pkgname ]; then
29 bzr co $_bzrtrunk $_bzrmod
37 install -dm755 $pkgdir/usr/share/{anamnesis,doc/anamnesis,man/man1}
39 cd $srcdir/$_pkgname/source
40 for srcfile in $(ls *); do
41 install -m644 $srcfile $pkgdir/usr/share/anamnesis
45 install -m644 anamnesis.cfg $pkgdir/usr/share/anamnesis
47 install -m644 ChangeLog $pkgdir/usr/share/doc/anamnesis
48 install -m644 COPYING $pkgdir/usr/share/doc/anamnesis
49 install -m644 README $pkgdir/usr/share/doc/anamnesis
51 install -m644 man/* $pkgdir/usr/share/man/man1
53 chmod +x $pkgdir/usr/share/anamnesis/anamnesis.py
54 sed -i "s/python/python2/" $pkgdir/usr/share/anamnesis/anamnesis.py