zim.paketlendi

This commit is contained in:
milisbir 2017-09-05 07:25:52 +03:00
parent 57502edeeb
commit 2801b9a6c5
2 changed files with 16 additions and 15 deletions

View File

@ -1,18 +1,19 @@
# Description: Wiki konsepti icin tasarlanmis WYSIWYG metin editoru
# Description: Wiki kavramını masaüstüne getirmeyi amaçlayan bir WYSIWYG metin editörü.
# URL: http://zim-wiki.org/
# Packager: milisarge
# Depends on: python-gtk dejavu-ttf desktop-file-utils
# Packager: Cihan Alkan
# Depends on: python-gtk dejavu-ttf
run=(dejavu-ttf desktop-file-utils shared-mime-info)
name=zim
version=0.60
release=2
source=(http://www.zim-wiki.org/downloads/$name-$version.tar.gz)
version=0.67
release=1
source=(http://zim-wiki.org/downloads/$name-$version.tar.gz)
build() {
cd $name-$version
# zim's setup.py subclasses distutil's install class, adding a flag to
# disable running update-desktop-database and update-mime-database
# during the install: --skip-xdg-cmd
python2 setup.py install --prefix=/usr --root=$PKG --skip-xdg-cmd
for file in zim/inc/xdot.py; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
sed -i 's|\t\tinstall_class.run(self)|&\n\t\treturn None|' setup.py
python2 setup.py install --root=$PKG --optimize=1
}

View File

@ -1,6 +1,6 @@
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q /usr/share/applications >/dev/null 2>&1
fi
if [ -x usr/bin/update-mime-database ]; then
usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1
fi