updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / sxiv-git / PKGBUILD
blob2cfbe50f80df6149840842e9cfacb5b11136c5a9
1 # Maintainer: Army <uli.armbruster @t gmail>
3 pkgname=sxiv-git
4 pkgver=20120110
5 pkgrel=1
6 pkgdesc="a simple x image viewer"
7 arch=(i686 x86_64)
8 license=('GPL2')
9 url="https://github.com/muennich/sxiv"
10 depends=('imlib2')
11 optdepends=('libexif: auto-orientate jpeg files according to their exif tags, configurable in the config.h'
12 'giflib: load all frames from gif files and support gif animations, configurable in the config.h'
13 'imagemagick: for external commands'
14 'libjpeg-turbo: for external commands'
15 'gimp: open with')
16 conflicts=('sxiv')
17 provides=('sxiv')
18 source=('patch')
20 _gitroot="https://github.com/muennich/sxiv.git"
21 _gitname="sxiv"
23 build() {
24         cd "${srcdir}"
25         msg "Connecting to GIT server...."
26         if [ -d ${_gitname} ] ; then
27                 cd ${_gitname} && git pull origin
28                 msg "The local files are updated."
29         else
30                 git clone ${_gitroot} ${_gitname}
31         fi
32         
33         msg "GIT checkout done or server timeout"
34         rm -rf "${srcdir}/${_gitname}-build"
35         git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
36         cd "${srcdir}/${_gitname}-build"
38         if test -e $startdir/config.h
39         then
40                 msg "use custom config.h"
41                 cp ${startdir}/config.h .
42         else
43                 msg "use default config.h"
44         fi
46         # uncomment the following, if you want to allow the usage of your custom CFLAGS and LDFLAGS
47         #patch -i $srcdir/patch
48         
49         msg "Starting make..."
50         make PREFIX="/usr"
53 package() {
54         cd "${srcdir}/${_gitname}-build"
55         make PREFIX="${pkgdir}/usr" install
56
57 md5sums=('aa80c7d48a1e7f51f9dcafbdb2eadee4')