diff options
author | Kevin Brodsky | 2017-01-21 15:30:39 +0000 |
---|---|---|
committer | Kevin Brodsky | 2017-01-21 15:31:37 +0000 |
commit | 23df8d23ae97eeb5c7ee8cdd74add1f9363f5b22 (patch) | |
tree | fce6be59ce5f8843ad7d1d6554d8a9d64f9bccde /PKGBUILD | |
download | aur-23df8d23ae97eeb5c7ee8cdd74add1f9363f5b22.tar.gz |
Initial version: 0.84
Hopefully the QT_QPA_PLATFORMTHEME hack will work for most people.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a7815c1c6287 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Kevin Brodsky <corax26 'at' gmail 'dot' com> + +pkgname=xnviewmp-system-libs +_pkgname=xnviewmp +pkgver=0.84 +pkgrel=1 +pkgdesc="An efficient multimedia viewer, browser and converter (using system libraries)." +url="http://www.xnview.com/en/xnviewmp/" + +arch=('x86_64' 'i686') +license=('custom') +depends=('qt5-multimedia' 'qt5-svg' 'qt5-webkit' 'qt5-x11extras' 'desktop-file-utils') +optdepends=('gvfs: support for moving files to trash') +conflicts=('xnviewmp') + +source=('xnviewmp.desktop') +source_x86_64=('http://download.xnview.com/XnViewMP-linux-x64.tgz') +source_i686=('http://download.xnview.com/XnViewMP-linux.tgz') +md5sums=('24f44d5a881b94daf48775213a57e4ec') +md5sums_x86_64=('a1202367f23f32e14a6a0d860564e1da') +md5sums_i686=('75e9e03aa41da988eb66524574794b31') + +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 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + install -D -m644 "${srcdir}/XnView/license.txt" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + + # Clean up + rm "${pkgdir}/opt/${_pkgname}/XnView.desktop"{,~} + chmod -x "${pkgdir}/opt/${_pkgname}/xnview.png" + + # Remove the bundled framework libs (Qt and icu). + rm "${pkgdir}/opt/${_pkgname}/lib/"lib* + # XnView MP does a weird font lookup with random results under certain + # circumstances, when not using the bundled libs. It seems that forcing + # QT_QPA_PLATFORMTHEME to be the shipped platform theme solves the issue. + sed -i 's/^exec/export QT_QPA_PLATFORMTHEME=gtk2\n\0/' "${pkgdir}/opt/${_pkgname}/xnview.sh" +} + +# vim:set ts=2 sw=2 et: |