[arch-commits] Commit in mcomix/repos/community-any (PKGBUILD PKGBUILD)
Jakob Gruber
schuay at archlinux.org
Thu May 5 09:58:50 UTC 2016
Date: Thursday, May 5, 2016 @ 11:58:50
Author: schuay
Revision: 173824
archrelease: copy trunk to community-any
Added:
mcomix/repos/community-any/PKGBUILD
(from rev 173823, mcomix/trunk/PKGBUILD)
Deleted:
mcomix/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 36 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-05 09:47:04 UTC (rev 173823)
+++ PKGBUILD 2016-05-05 09:58:50 UTC (rev 173824)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: schuay <jakob.gruber at gmail.com>
-# Contributor: Ray Powell <ray_al at xphoniexx.net>
-
-pkgname=mcomix
-pkgver=1.2.1
-pkgrel=2
-pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books"
-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')
-optdepends=('unrar: for rar compressed comics')
-conflicts=('comix')
-replaces=('comix')
-source=("http://downloads.sourceforge.net/project/mcomix/MComix-${pkgver}/mcomix-${pkgver}.tar.bz2")
-
-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
-}
-
-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=('1d05ed7596bd670e5b3a97896e6d4d47')
Copied: mcomix/repos/community-any/PKGBUILD (from rev 173823, mcomix/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-05-05 09:58:50 UTC (rev 173824)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: schuay <jakob.gruber at gmail.com>
+# Contributor: Ray Powell <ray_al at xphoniexx.net>
+
+pkgname=mcomix
+pkgver=1.2.1
+pkgrel=3
+pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books"
+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')
+optdepends=('libunrar: for rar compressed comics'
+ 'mupdf-tools: for pdf comics'
+ 'p7zip: for 7zip compressed comics')
+conflicts=('comix')
+replaces=('comix')
+source=("http://downloads.sourceforge.net/project/mcomix/MComix-${pkgver}/mcomix-${pkgver}.tar.bz2")
+
+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/comicthumb.thumbnailer ${pkgdir}/usr/share/thumbnailers/comicthumb.thumbnailer
+}
+
+md5sums=('1d05ed7596bd670e5b3a97896e6d4d47')
More information about the arch-commits
mailing list