summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f818e70ac80
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: SanskritFritz (gmail)
+
+pkgname=anamnesis
+pkgver=1.0.4
+pkgrel=4
+pkgdesc="Clipboard manager that stores all clipboard history and offers an interface to do a full-text search."
+arch=('i686' 'x86_64')
+url=http://anamnesis.sourceforge.net/
+license=('GPL')
+depends=('pygtk' 'python2-xdg' 'sqlite3')
+optdepends=('xclip: for clipboard_implementation=gtk_xclip')
+backup=('usr/share/anamnesis/anamnesis.cfg')
+source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+md5sums=('83eeb75965b4f0bbb9ddf1a3601012ef')
+
+package() {
+ install -dm755 "$pkgdir"/usr/share/{anamnesis,doc/anamnesis,man/man1}
+ install -dm755 "$pkgdir/usr/bin"
+
+ cd "$srcdir/$pkgname-$pkgver/source"
+ for srcfile in $(ls *); do
+ install -m644 "$srcfile" "$pkgdir/usr/share/anamnesis"
+ done
+
+ cd "$srcdir/$pkgname-$pkgver"
+ install -m644 anamnesis.cfg "$pkgdir/usr/share/anamnesis"
+ install -m644 ChangeLog "$pkgdir/usr/share/doc/anamnesis"
+ install -m644 COPYING "$pkgdir/usr/share/doc/anamnesis"
+ install -m644 README "$pkgdir/usr/share/doc/anamnesis"
+
+ install -m644 man/* "$pkgdir/usr/share/man/man1"
+
+ chmod +x "$pkgdir/usr/share/anamnesis/anamnesis.py"
+ sed -i "s/python/python2/" "$pkgdir/usr/share/anamnesis/anamnesis.py"
+ ln -s "/usr/share/anamnesis/anamnesis.py" "$pkgdir/usr/bin/anamnesis"
+}
+