summaryrefslogtreecommitdiff
path: root/community/xloadimage/PKGBUILD
blob: b1a2a4aafe1b77aae32d27b7e09fab4608cff289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 39571 2011-02-11 16:14:42Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: Link Dupont <link@subpop.net>

pkgname=xloadimage
pkgver=4.1
pkgrel=11
pkgdesc="An utility to view many different types of images under X11"
arch=(i686 x86_64)
#url="http://world.std.com/~jimf/xloadimage.html"
url="http://sioseis.ucsd.edu/xloadimage.html"
license=("MIT")
depends=('libtiff' 'libpng' 'libx11' 'libxext')
makedepends=('patch')
source=(http://archlinux-stuff.googlecode.com/files/xloadimage.$pkgver-1.tar.gz
	license.txt
	enable-image-types.patch)
md5sums=('86b42b1b628a9c00008b7deec21e1175'
         'cc16a51aeb5083b8ff07939dfe244130'
         '33eadf10ce627cc1bf0db351a49e6cca')

build() {
  cd $srcdir/$pkgname.$pkgver

  patch -p1 <$srcdir/enable-image-types.patch
  xmkmf
  make

  install -D -m755 xloadimage $pkgdir/usr/bin/xloadimage
  install -D -m755 uufilter $pkgdir/usr/bin/uufilter
  install -D -m644 xloadimagerc $pkgdir/etc/xloadimagerc.example
  install -D -m644 xloadimage.man $pkgdir/usr/man/man1/xloadimage.1x
  install -D -m644 uufilter.man $pkgdir/usr/man/man1/uufilter.1x
  install -D -m644 $srcdir/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
  ln -s /usr/bin/xloadimage $pkgdir/usr/bin/xsetbg

  mv $pkgdir/usr/man $pkgdir/usr/share/
}