summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33fa3315f336a5edefe64ceb2d85e77cb5edf6eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: SanskritFritz (gmail)

pkgname=anamnesis
pkgver=1.0.4
pkgrel=5
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-pyxdg' '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"
}