blob: e9c047ce1d06e553d830929d5c22845178a04779 (
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
|
# Maintainer: Felix Golatofski <contact@xdfr.de>
pkgname=outwiker
pkgver=2.0.0
pkgrel=2
arch=('any')
pkgdesc="Outliner and personal wiki with keeping the tree of notes in the form of directories on a disk"
url="https://jenyay.net/Outwiker/English"
license=('GPL3')
depends=('python2' 'wxpython2.8' 'pywebkitgtk' 'python2-pillow' 'python2-pyenchant')
optdepends=('mimetex: rendering of formulas')
conflicts=('outwiker-git')
source=("outwiker.deb::https://launchpad.net/~outwiker-team/+archive/ubuntu/ppa/+files/outwiker_2.0.0+822~zesty_all.deb");
sha256sums=('4d0dd13dce875ebfe359818e9a3bec127f6af53f21100138e5fbd8caf9cc9021')
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 {} \;
}
|