From 2801b9a6c5d80e9f87d0a3e901890c6b9c5170a0 Mon Sep 17 00:00:00 2001 From: milisbir Date: Tue, 5 Sep 2017 07:25:52 +0300 Subject: [PATCH] zim.paketlendi --- talimatname/genel/zim/talimat | 23 ++++++++++++----------- talimatname/genel/zim/zim.kur-kos | 8 ++++---- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/talimatname/genel/zim/talimat b/talimatname/genel/zim/talimat index 8481b3e20..f92f0af55 100644 --- a/talimatname/genel/zim/talimat +++ b/talimatname/genel/zim/talimat @@ -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 } diff --git a/talimatname/genel/zim/zim.kur-kos b/talimatname/genel/zim/zim.kur-kos index 5ac427eea..1c7a0f8d7 100644 --- a/talimatname/genel/zim/zim.kur-kos +++ b/talimatname/genel/zim/zim.kur-kos @@ -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