updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / xzgv / PKGBUILD
blob82dc5b5e4ac7804a7a273846df8608ba88f5909e
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Alexander Baldeck <alexander@archlinux.org>
3 # Contributor: dorphell <dorphell@archlinux.org>
5 pkgname=xzgv
6 pkgver=0.9.1
7 pkgrel=2
8 pkgdesc="A picture viewer for X, with a thumbnail-based file selector"
9 arch=('i686' 'x86_64')
10 url="http://sourceforge.net/projects/xzgv/"
11 license=('GPL')
12 depends=('gtk2')
13 optdepends=('xterm: open help files')
14 install=$pkgname.install
15 source=(http://downloads.sourceforge.net/sourceforge/xzgv/${pkgname}-${pkgver}.tar.gz
16         xzgv.desktop
17         xzgv-ldflags.patch)
18 md5sums=('d6452ebd4911d986fa1176086afb6e33'
19          'fa2c04aa696e23e28f2dec0ef89f5493'
20          'ac77492f25a6b4927d2efca966f5e03c')
22 build() {
23   cd "$srcdir/$pkgname-$pkgver"
24   unset LDFLAGS
25   patch -Np1 -i "$srcdir/xzgv-ldflags.patch"
27   make all
28   make info
31 package() {   
32   cd "$srcdir/$pkgname-$pkgver"
34   make BINDIR="$pkgdir/usr/bin" \
35        MANDIR="$pkgdir/usr/share/man/man1" \
36        INFODIR="$pkgdir/usr/share/info" \
37        install
39   # Install desktop file and icon
40   install -Dm644 "$srcdir/xzgv.desktop" "$pkgdir/usr/share/applications/xzgv.desktop"
41   install -Dm644 src/icon-64.xpm "$pkgdir/usr/share/pixmaps/xzgv.xpm"