summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD47
-rw-r--r--xnviewmp.desktop11
-rw-r--r--xnviewmp.install13
4 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8aab82a2d0f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = xnviewmp
+ pkgdesc = An efficient multimedia viewer, browser and converter.
+ pkgver = 0.72
+ pkgrel = 1
+ url = http://www.xnview.com/en/xnviewmp/
+ install = xnviewmp.install
+ arch = x86_64
+ arch = i686
+ license = custom
+ depends = glib2
+ depends = expat
+ depends = libpng12
+ depends = gstreamer0.10-base
+ depends = desktop-file-utils
+ optdepends = gvfs: support for moving files to trash
+ source = XnViewMP-linux-0.72.tgz::http://download.xnview.com/XnViewMP-linux.tgz
+ source = xnviewmp.desktop
+ md5sums = a25161fd85775e6259fa83dc0323377d
+ md5sums = 24f44d5a881b94daf48775213a57e4ec
+
+pkgname = xnviewmp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..97c270304f2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Chris Down <chris@chrisdown.name>
+# Contributor: Iru Cai <mytbk920423\x40gmail 'dot' com>
+# Contributor: Houlala <houlala 'at' gmail 'dot' com>
+# Contributor: Olivier Duclos <olivier.duclos gmail.com>
+# Contributor: wido <widomaker2k7@gmail.com>
+# Contributor: VuDu <vudu 'dot' curse 'at' gmail 'dot' com>
+
+pkgname=xnviewmp
+pkgver=0.72
+pkgrel=1
+pkgdesc="An efficient multimedia viewer, browser and converter."
+url="http://www.xnview.com/en/xnviewmp/"
+
+arch=('x86_64' 'i686')
+license=('custom')
+depends=('glib2' 'expat' 'libpng12' 'gstreamer0.10-base' 'desktop-file-utils')
+optdepends=('gvfs: support for moving files to trash')
+
+install='xnviewmp.install'
+
+source=("XnViewMP-linux-${pkgver}.tgz::http://download.xnview.com/XnViewMP-linux.tgz"
+ "xnviewmp.desktop")
+md5sums=('a25161fd85775e6259fa83dc0323377d'
+ '24f44d5a881b94daf48775213a57e4ec')
+
+if [ "$CARCH" = 'x86_64' ]; then
+ source=("XnViewMP-linux-x64-${pkgver}.tgz::http://download.xnview.com/XnViewMP-linux-x64.tgz"
+ "xnviewmp.desktop")
+ md5sums=('1e3ffc900abf13795f148156d7796c72'
+ '24f44d5a881b94daf48775213a57e4ec')
+fi
+
+
+package() {
+ install -d -m755 "${pkgdir}/opt/${pkgname}"
+ install -d -m755 "${pkgdir}/usr/bin"
+ install -d -m755 "${pkgdir}/usr/share/applications"
+
+ cp -a "${srcdir}/XnView"/* "${pkgdir}/opt/${pkgname}"
+ ln -s "/opt/${pkgname}/xnview.sh" "${pkgdir}/usr/bin/${pkgname}"
+
+ install -m644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+
+ install -D -m644 "${srcdir}/XnView/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/xnviewmp.desktop b/xnviewmp.desktop
new file mode 100644
index 00000000000..850cb932ab8
--- /dev/null
+++ b/xnviewmp.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Terminal=0
+Exec=/usr/bin/xnviewmp %F
+Icon=/opt/xnviewmp/xnview.png
+Type=Application
+Categories=Graphics;
+StartupNotify=true
+Name=XnView Multi Platform
+GenericName=XnViewMP
+MimeType=image/bmp;image/gif;image/x-portable-bitmap;image/x-portable-pixmap;image/x-psd;image/x-tga;image/x-xbitmap;image/tiff;image/jpeg;image/x-psd;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;
diff --git a/xnviewmp.install b/xnviewmp.install
new file mode 100644
index 00000000000..0437fc78986
--- /dev/null
+++ b/xnviewmp.install
@@ -0,0 +1,13 @@
+post_install() {
+ update-desktop-database -q /usr/share/applications
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et: