diff options
Diffstat (limited to 'libre/mcomix-libre')
-rw-r--r-- | libre/mcomix-libre/PKGBUILD | 56 | ||||
-rw-r--r-- | libre/mcomix-libre/mcomix.install | 31 | ||||
-rw-r--r-- | libre/mcomix-libre/zoom.patch | 17 |
3 files changed, 0 insertions, 104 deletions
diff --git a/libre/mcomix-libre/PKGBUILD b/libre/mcomix-libre/PKGBUILD deleted file mode 100644 index 97c3bde0f..000000000 --- a/libre/mcomix-libre/PKGBUILD +++ /dev/null @@ -1,56 +0,0 @@ -# $Id: PKGBUILD 106934 2014-03-10 18:30:38Z schuay $ -# Maintainer: schuay <jakob.gruber@gmail.com> -# Contributor: Ray Powell <ray_al@xphoniexx.net> -# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> - -_pkgname=mcomix -pkgname=mcomix-libre -pkgver=1.00 -pkgrel=6 -pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books, without nonfree unrar recommendation" -arch=('any') -url="http://sourceforge.net/projects/mcomix/" -license=('GPL') -depends=('pygtk' 'python2-pillow' 'xdg-utils' 'python2' \ - 'desktop-file-utils' 'hicolor-icon-theme' 'python2-setuptools') -makedepends=('gettext' 'intltool') -conflicts=('mcomix' 'comix') -replaces=('mcomix' 'comix') -provides=("mcomix=${pkgver}") -install='mcomix.install' -source=("http://downloads.sourceforge.net/project/mcomix/MComix-${pkgver}/mcomix-${pkgver}.tar.bz2" - 'zoom.patch') - -build() { - cd ${srcdir}/${_pkgname}-${pkgver} - - # https://www.archlinux.org/todo/replace-pil-with-pillow/ - sed -i 's/import Image/from PIL import Image/' mime/comicthumb - - # python2 fix - for file in $(grep -Rl "/usr/bin/env python" .); - do - sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file - done - - # Fix zoom in, zoom out keyboard shortcuts: - # https://sourceforge.net/p/mcomix/bugs/62/ - patch -Np1 < ${srcdir}/zoom.patch -} - -package() { - cd ${srcdir}/${_pkgname}-${pkgver} - - export PYTHONPATH=${pkgdir}/usr/lib/python2.7/site-packages/ - mkdir -p $PYTHONPATH - - python2 setup.py install --prefix=/usr --optimize=1 \ - --single-version-externally-managed --root=${pkgdir} - - install -Dm755 mime/comicthumb ${pkgdir}/usr/bin/comicthumb - install -Dm644 mime/comicthumb.1.gz ${pkgdir}/usr/share/man/man1/comicthumb.1.gz - install -Dm644 mime/comicbook.schemas ${pkgdir}/usr/share/gconf/schemas/mcomix.schemas -} - -md5sums=('3a916dd9da17043ab59ccd17e26eb932' - 'c80705bf6f132bfba20dcb84b79c9cb7') diff --git a/libre/mcomix-libre/mcomix.install b/libre/mcomix-libre/mcomix.install deleted file mode 100644 index 82047a202..000000000 --- a/libre/mcomix-libre/mcomix.install +++ /dev/null @@ -1,31 +0,0 @@ -pkgname=mcomix - -post_install() { - if [ -f usr/sbin/gconfpkg ]; then - usr/sbin/gconfpkg --install ${pkgname} &> /dev/null - fi - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - update-desktop-database -q - update-mime-database usr/share/mime &> /dev/null -} - -pre_upgrade() { - pre_remove $1 -} - -post_upgrade() { - echo 'In case of any issues with zoom keybindings, delete ~/.config/mcomix/keybindings.conf.' - post_install $1 -} - -pre_remove() { - if [ -f usr/sbin/gconfpkg ]; then - usr/sbin/gconfpkg --uninstall ${pkgname} &> /dev/null - fi -} - -post_remove() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - update-desktop-database -q - update-mime-database usr/share/mime &> /dev/null -} diff --git a/libre/mcomix-libre/zoom.patch b/libre/mcomix-libre/zoom.patch deleted file mode 100644 index 26dc3ba6f..000000000 --- a/libre/mcomix-libre/zoom.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/mcomix-1.00/mcomix/event.py b/mcomix-1.00-mod/mcomix/event.py -index bc8cf79..bf80ec2 100644 ---- a/mcomix/event.py -+++ b/mcomix/event.py -@@ -117,8 +117,11 @@ class EventHandler: - - # Zooming commands for manual zoom mode - manager.register('zoom in', -- ['equal'], -+ ['plus', 'KP_Add', 'equal'], - self._window.actiongroup.get_action('zoom_in').activate) -+ manager.register('zoom out', -+ ['minus', 'KP_Subtract'], -+ self._window.actiongroup.get_action('zoom_out').activate) - # Zoom out is already defined as GTK menu hotkey - manager.register('zoom original', - ['KP_0'], |