updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / outwiker / PKGBUILD
blob77d99b093723b0f27f92d3d58c65fbd623a67165
1
3 pkgname=outwiker
4 _pkgname=Outwiker
5 pkgver=1.4.0
6 pkgrel=1
7 arch=('any')
8 pkgdesc="Outliner and personal wiki with keeping the tree of notes in the form of directories on disk"
9 url="http://jenyay.net/Soft/Outwiker"
10 license=('GPL3')
11 depends=('wxpython' 'pywebkitgtk')
12 optdepends=('mimetex: rendering of formulas'
13             'python-gnomeprint: printing non-latin symbols')
14 conflicts=(outwiker-bzr)
15 source=("http://jenyay.net/uploads/Soft/$_pkgname/$pkgname-$pkgver-1.deb")
17 build() {
18    /bin/true
21 package() {  
22    ar x $pkgname-$pkgver-1.deb
23    tar xf data.tar.gz -C $pkgdir
24    cd $pkgdir
25    # python2 fix
26    for file in $(find . -name '*.py' -print); do
27       sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
28       sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
29    done
30    sed -i -e 's/python /python2 /' ${pkgdir}/usr/bin/$pkgname
31    find "$pkgdir"/usr/share/$pkgname -type f -exec chmod a-x,u+w {} \;
33 md5sums=('085fd861b40e1de9160f9f4c6b504f8d')