diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2020-04-11 10:24:55 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2020-04-11 10:24:55 -0500 |
commit | b6cfecdd5f0ebb64eff423f33227a96d78c77acf (patch) | |
tree | ae9f51f5344b78c765e569fda25459287b354402 /libre/mcomix/PKGBUILD | |
parent | 29ba4ed120f011a6fa04976ffba487126b4aa661 (diff) | |
download | abslibre-b6cfecdd5f0ebb64eff423f33227a96d78c77acf.tar.gz abslibre-b6cfecdd5f0ebb64eff423f33227a96d78c77acf.tar.bz2 abslibre-b6cfecdd5f0ebb64eff423f33227a96d78c77acf.zip |
mcomix-1.3.0.dev0-2.parabola1: updating version
Diffstat (limited to 'libre/mcomix/PKGBUILD')
-rw-r--r-- | libre/mcomix/PKGBUILD | 65 |
1 files changed, 35 insertions, 30 deletions
diff --git a/libre/mcomix/PKGBUILD b/libre/mcomix/PKGBUILD index 1cf844b11..1729fe341 100644 --- a/libre/mcomix/PKGBUILD +++ b/libre/mcomix/PKGBUILD @@ -4,52 +4,57 @@ # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=mcomix -pkgver=1.2.1 -pkgrel=5 +pkgver=1.3.0.dev0 +pkgrel=2 pkgrel+=.parabola1 pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books" pkgdesc+=", without nonfree libunrar support" arch=('any') -url="https://sourceforge.net/projects/mcomix/" +url="https://github.com/multiSnow/mcomix3" license=('GPL') -depends=('pygtk' 'python2-pillow' 'xdg-utils' 'python2' \ - 'desktop-file-utils' 'hicolor-icon-theme' 'python2-setuptools') -makedepends=('gettext' 'intltool') +depends=('gtk3' 'python-cairo' 'python-gobject' 'python-pillow') +makedepends=('git') optdepends=('mupdf-tools: for pdf comics' 'p7zip: for 7zip compressed comics') conflicts=('mcomix-libre') replaces=('mcomix-libre') -source=("https://downloads.sourceforge.net/project/mcomix/MComix-${pkgver}/mcomix-${pkgver}.tar.bz2" - "486f02.patch" +_commit=2f82616f34154624c78fb6eca3bc0cc5cdef0cf3 # gtk3 +source=("git+https://github.com/multiSnow/mcomix3.git#commit=$_commit" 'libre.patch') -md5sums=('1d05ed7596bd670e5b3a97896e6d4d47' - 'e033a538925e6119a540bf084f1de878' - '2fc7a69a673fbc4be5d1567489dd9b6e') -sha256sums=('7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b' - 'be0f41404b079931bd899642fa256ac757bb3adc95f36b8cb38dec61781d87fc' - '9037996a36782b970c736a55a315c421956bbd08511e4881d780f7c41d8945a6') +sha256sums=('SKIP' + '24f8302cc6d7b969c44883bb361137f59d13b21c959ed9c88918bc370c70351a') prepare() { - cd ${srcdir}/${pkgname}-${pkgver} - patch -Np1 < ${srcdir}/486f02.patch - + cd mcomix3 # Remove nonfree unRAR support - rm -v mcomix/archive/rar{,_external}.py + rm -v mcomix/mcomix/archive/rar{,_external}.py rm -v mime/icons/*/application-x-cbr.png patch -Np1 -i ${srcdir}/libre.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/comicthumb.thumbnailer ${pkgdir}/usr/share/thumbnailers/comicthumb.thumbnailer + cd mcomix3 + + python installer.py --srcdir=mcomix --target="${pkgdir}"/usr/share + + install -dm755 "$pkgdir"/usr/bin + ln -s /usr/share/mcomix/mcomixstarter.py "$pkgdir"/usr/bin/mcomix + ln -s /usr/share/mcomix/comicthumb.py "$pkgdir"/usr/bin/comicthumb + + install -Dm644 mime/mcomix.desktop "$pkgdir"/usr/share/applications/mcomix.desktop + install -Dm644 mime/mcomix.appdata.xml "$pkgdir"/usr/share/metainfo/mcomix.appdata.xml + install -Dm644 mime/mcomix.xml "$pkgdir"/usr/share/mime/packages/mcomix.xml + install -Dm644 mime/comicthumb.thumbnailer "$pkgdir"/usr/share/thumbnailers/comicthumb.thumbnailer + + for size in 16x16 22x22 24x24 32x32 48x48 + do + install -dm755 "$pkgdir"/usr/share/icons/hicolor/$size/apps/ + install -Dm644 mcomix/mcomix/images/$size/mcomix.png "$pkgdir"/usr/share/icons/hicolor/$size/apps/mcomix.png + install -Dm644 mime/icons/$size/application-x-cb7.png "$pkgdir"/usr/share/icons/hicolor/$size/mimetypes/application-x-cb7.png + install -Dm644 mime/icons/$size/application-x-cbt.png "$pkgdir"/usr/share/icons/hicolor/$size/mimetypes/application-x-cbt.png + install -Dm644 mime/icons/$size/application-x-cbz.png "$pkgdir"/usr/share/icons/hicolor/$size/mimetypes/application-x-cbz.png + done + + install -Dm644 man/mcomix.1 "$pkgdir"/usr/share/man/man1/mcomix.1 + install -Dm644 man/comicthumb.1 "$pkgdir"/usr/share/man/man1/comicthumb.1 } - |