Skip to content

Instantly share code, notes, and snippets.

/PKGBUILD Secret
Created Apr 10, 2016

Embed
What would you like to do?
pkgname=outwiker
pkgver=1.9
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' 'python2-pyenchant')
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_1.8.1%2B752%7Etrusty_all.deb")
source=("outwiker.deb::https://launchpad.net/~outwiker-team/+archive/ubuntu/ppa/+files/outwiker_1.9.0+790~trusty_all.deb");
sha1sums=('eb98505920d9f76c13f4ff701fafabeae3062f31')
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 {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.