summaryrefslogtreecommitdiff
path: root/community/sxiv/PKGBUILD
blob: 68fb8e2bd11d3d575f6f77253109ee7b748993fa (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
# Maintainer:  Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Bert Muennich <muennich at informatik.hu-berlin.de>
# Contributor: Brad Fanella <bradfanella@archlinux.us>

pkgname=sxiv
pkgver=1.0
pkgrel=3
pkgdesc='simple x image viewer'
arch=('i686' 'x86_64')
license=('GPL2')
install=sxiv.install
url='https://github.com/muennich/sxiv'
depends=('libx11' 'xproto' 'imlib2' 'giflib' 'libexif' 'desktop-file-utils')
source=("https://github.com/downloads/muennich/sxiv/sxiv-${pkgver}.tar.gz"
        'sxiv.desktop'
	    'config.h')
md5sums=('c887e0af1e4d5a101b285a46d288c419'
         '1dda85ff6bed4de337f8fb303075ed11'
         'c3e6c4b86da6b17687699dbd32c7717b')
build() {
  	cd "sxiv-${pkgver}"

	cp "$srcdir/config.h" .
	make
}

package() {
  	cd "sxiv-${pkgver}"

  	make PREFIX="${pkgdir}/usr" install
	install -D -m644 ${srcdir}/sxiv.desktop \
    		${pkgdir}/usr/share/applications/sxiv.desktop
}