1 # Contributor: alphazo <alphazo@gmail.com>
2 # Original PKGBUILD from reflexing <reflexing@reflexing.ru>
3 # Adapted for development version and new Python3 environment
8 pkgdesc="wikidPad is a Wiki-like notebook for storing your thoughts, ideas, todo lists, contacts, or anything else you can think of to write down. [Development version]"
10 url="http://wikidpad.sourceforge.net/"
13 depends=('wxpython' 'python-pysqlite')
17 conflicts=('wikidpad')
22 source=(http://downloads.sourceforge.net/wikidpad/WikidPad-$pkgver-src.zip
28 noextract=(WikidPad-$pkgver-src.zip)
29 md5sums=('801d5c86f07fa1c25308286f5c44290e'
30 '37ff74df2af02a091c7b8d8533d5ad2b'
31 'e93014425c38f4a7a023258fde5ac512'
32 'c44e552a8b856610a3e859d1602d5cf1')
39 mkdir $pkgname-$pkgver
41 unzip WikidPad-$pkgver-src.zip -d $pkgname-$pkgver || return 1
43 # Patch for Python2 compatibility
46 sed -i -e "s|env python|env python2|" *.py
47 sed -i -e "s|/bin/python|/usr/bin/python2|" *.py
50 # dirty copying whole Python sources due to the lack of good 'python setup.py install' functionality (TODO: setup.py fixes to make it crossplatform)
52 mkdir -p $pkgdir/usr/share/$pkgname
54 cp -r $pkgname-$pkgver/* $pkgdir/usr/share/$pkgname || return 1
57 install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname || return 1
60 install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png || return 1
62 # install DE menu items
63 install -Dm644 $srcdir/$pkgname.desktop \
64 $pkgdir/usr/share/applications/$pkgname.desktop || return 1