diff options
author | dysphr@aur | 2015-07-31 05:05:38 +0100 |
---|---|---|
committer | dysphr@aur | 2015-07-31 05:05:38 +0100 |
commit | 8508d5ad1927d3dd84f04e63082a32ede2e4a8a3 (patch) | |
tree | be33228ec665cefa41e6ca7a512950ceced582c9 | |
download | aur-8508d5ad1927d3dd84f04e63082a32ede2e4a8a3.tar.gz |
Updated old AUR package
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | mcomix.install | 35 |
3 files changed, 104 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b24ef3fbfefb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = mcomix-git + pkgdesc = A user-friendly, customizable image viewer specifically designed to handle comic books + pkgver = 20150627 + pkgrel = 1 + url = https://github.com/benoit-pierre/mcomix + install = mcomix.install + arch = any + license = GPL + makedepends = gettext + makedepends = intltool + depends = pygtk + depends = python2-pillow + depends = xdg-utils + depends = python2 + depends = desktop-file-utils + depends = hicolor-icon-theme + depends = python2-setuptools + optdepends = libunrar: for rar compressed comics + optdepends = p7zip: for 7z compressed comics + optdepends = unrar: for rar compressed comics + optdepends = unzip: for zip compressed comics + optdepends = mupdf: for PDF comics + provides = mcomix + conflicts = mcomix + source = git+https://github.com/benoit-pierre/mcomix.git + sha256sums = SKIP + +pkgname = mcomix-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..26638ac98784 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: dysphr <> +# Contributor: Mitsu <archlinux AT suumitsu DOT eu> +# Contributor: schuay <jakob.gruber@gmail.com> +# Contributor: Ray Powell <ray_al@xphoniexx.net> + +pkgname=mcomix-git +_gitname=mcomix +pkgver=20150627 +pkgrel=1 +pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books" +arch=('any') +url="https://github.com/benoit-pierre/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' \ + 'p7zip: for 7z compressed comics' \ + 'unrar: for rar compressed comics' \ + 'unzip: for zip compressed comics' \ + 'mupdf: for PDF comics') +provides=("mcomix") +conflicts=("mcomix") +source=('git+https://github.com/benoit-pierre/mcomix.git') +sha256sums=('SKIP') +install=mcomix.install + +package() { + cd "${srcdir}/${_gitname}" + mkdir -p ${pkgdir}/usr + export PYTHONPATH=${pkgdir}/usr/lib/python2.7/site-packages/ + mkdir -p $PYTHONPATH + python2 setup.py install --prefix=${pkgdir}/usr --optimize=1 \ + --single-version-externally-managed --root=/ + + 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 +} + diff --git a/mcomix.install b/mcomix.install new file mode 100644 index 000000000000..4ad5abf511f7 --- /dev/null +++ b/mcomix.install @@ -0,0 +1,35 @@ +pkgname=mcomix + +post_install() { + if [ -f usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + fi + if [ -f usr/sbin/gconfpkg ]; then + usr/sbin/gconfpkg --install ${pkgname} &> /dev/null + fi + update-desktop-database -q + update-mime-database /usr/share/mime +} + +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() { + if [ -f usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + fi + update-desktop-database -q + update-mime-database /usr/share/mime &> /dev/null +} |