updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / xnviewmp / PKGBUILD
blobe61c19652156bb6652b5f1c9c05983bc4ad7ccd4
1 # Maintainer: osily <ly50247 at gmail dot com>
2 # Contributor: Olivier Duclos <olivier.duclos gmail.com>
3 # Contributor: wido <widomaker2k7@gmail.com>
4 # Contributor: VuDu <vudu 'dot' curse 'at' gmail 'dot' com>
5 # Contributor: Houlala <houlala 'at' gmail 'dot' com>
7 pkgname=xnviewmp
8 pkgver=0.39
9 pkgrel=1
10 pkgdesc='An efficient image viewer, browser and converter (beta release).'
11 arch=('i686' 'x86_64')
12 url='http://newsgroup.xnview.com/viewtopic.php?f=60&t=24056'
13 license=('custom')
14 depends=('glib2' 'expat')
15 source=('http://download.xnview.com/XnViewMP-linux.tgz')
16 md5sums=('cab11ea66f42f2186fb625259f9eea5a')
18 [ "$CARCH" = 'x86_64' ] && source=('http://download.xnview.com/XnViewMP-linux-x64.tgz') \
19                                                 && md5sums=('bd68eae3382a674fe7efdc5a2512dd2a')
21 source=(${source[@]} 'XnViewMP.desktop')
22 md5sums=(${md5sums[@]} '638f2dc5ee0c9ed0e2106c1cc5bb1a5f')
25 build() {
26         cp XnViewMP.desktop ${srcdir}/XnViewMP || return 1
27         cd ${srcdir}/XnViewMP
29         install -dm 755 ${pkgdir}/usr/share/${pkgname} || return 1
30         cp -R * ${pkgdir}/usr/share/${pkgname} || return 1
32         install -Dm 644 XnViewMP.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
34         install -dm 755 ${pkgdir}/usr/bin/ || return 1
35         cd ${pkgdir}/usr/bin/
36         ln -s ../share/${pkgname}/xnview.sh ${pkgname} || return 1