summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0fd7c10e27bfe09cf1070b1ad90be754d1778e2 (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

pkgname=outwiker
pkgver=1.8.1
pkgrel=1
arch=('any')
pkgdesc="Outliner and personal wiki with keeping the tree of notes in the form of directories on a disk"
url="http://jenyay.net/Outwiker/English"
license=('GPL3')
depends=('python2' 'wxpython2.8' 'pywebkitgtk' 'python2-pillow')
optdepends=('mimetex: rendering of formulas'
            'python-gnomeprint: printing non-latin symbols')
conflicts=('outwiker-git')
source=("outwiker.deb::https://launchpad.net/~outwiker-team/+archive/ubuntu/ppa/+files/outwiker_2.0.0%2B822%7Ezesty_all.deb")
sha1sums=('7ddadcefbdcad1f03f2d5139f1156a7543a04615')

package() {
	ar x outwiker.deb
	tar xf data.tar.xz -C ${pkgdir}
	cd ${pkgdir}
	# python2 fix
	for file in $(find . -name '*.py' -print); do
		sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
		sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
	done
	sed -i -e 's/python /python2 /' ${pkgdir}/usr/bin/${pkgname}
	find ${pkgdir}/usr/share/${pkgname} -type f -exec chmod a-x,u+w {} \;
}