updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / wikidpad / PKGBUILD
blob6e810103ad3662b26981e246b17e8e070f662579
1 # Contributor: alphazo <alphazo@gmail.com>
2 # Original PKGBUILD from reflexing <reflexing@reflexing.ru>
3 pkgname=wikidpad
4 pkgver=2.1
5 pkgrel=1
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."
7 arch=('any')
8 url="http://wikidpad.sourceforge.net/"
9 license=('custom')
10 groups=()
11 depends=('wxpython' 'python-pysqlite')
12 makedepends=('unzip')
13 optdepends=()
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 install=
20 source=(http://downloads.sourceforge.net/wikidpad/WikidPad-$pkgver-src.zip
21     wikidpad
22     wikidpad.desktop
23     wikidpad.png
26 noextract=(WikidPad-$pkgver-src.zip)
27 md5sums=('9c1c6915130a614e7f051e9a55954284'
28          '5ac44ec35c09861e631c86596142a47c'
29          'f5b1ea28f93fefdccca204024e1bcfbf' 
30          'c44e552a8b856610a3e859d1602d5cf1') 
33 build() {
34   cd $srcdir
35   
36   # proper extract
37   mkdir $pkgname-$pkgver
38   unzip WikidPad-$pkgver-src.zip -d $pkgname-$pkgver || return 1
40   # Patch for Python2 compatibility
41   cd $pkgname-$pkgver
42   sed -i -e "s|env python|env python2|" *.py
43   sed -i -e "s|/bin/python|/usr/bin/python2|" *.py
44   cd ..
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
50   # install run wrapper
51   install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname || return 1
52   
53   # install icons
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