1 # Contributor: alphazo <alphazo@gmail.com>
2 # Original PKGBUILD from reflexing <reflexing@reflexing.ru>
6 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."
8 url="http://wikidpad.sourceforge.net/"
11 depends=('wxpython' 'python-pysqlite')
20 source=(http://downloads.sourceforge.net/wikidpad/WikidPad-$pkgver-src.zip
26 noextract=(WikidPad-$pkgver-src.zip)
27 md5sums=('9c1c6915130a614e7f051e9a55954284'
28 '5ac44ec35c09861e631c86596142a47c'
29 'f5b1ea28f93fefdccca204024e1bcfbf'
30 'c44e552a8b856610a3e859d1602d5cf1')
37 mkdir $pkgname-$pkgver
38 unzip WikidPad-$pkgver-src.zip -d $pkgname-$pkgver || return 1
40 # Patch for Python2 compatibility
42 sed -i -e "s|env python|env python2|" *.py
43 sed -i -e "s|/bin/python|/usr/bin/python2|" *.py
46 # dirty copying whole Python sources due to the lack of good 'python setup.py install' functionality (TODO: setup.py fixes to make it crossplatform)
47 mkdir -p $pkgdir/usr/share/$pkgname
48 cp -r $pkgname-$pkgver/* $pkgdir/usr/share/$pkgname || return 1
51 install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname || return 1
54 install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png || return 1
56 # install DE menu items
57 install -Dm644 $srcdir/$pkgname.desktop \
58 $pkgdir/usr/share/applications/$pkgname.desktop || return 1