1 # Maintainer: Army <uli.armbruster @t gmail>
6 pkgdesc="a simple x image viewer"
9 url="https://github.com/muennich/sxiv"
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'
20 _gitroot="https://github.com/muennich/sxiv.git"
25 msg "Connecting to GIT server...."
26 if [ -d ${_gitname} ] ; then
27 cd ${_gitname} && git pull origin
28 msg "The local files are updated."
30 git clone ${_gitroot} ${_gitname}
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
40 msg "use custom config.h"
41 cp ${startdir}/config.h .
43 msg "use default config.h"
46 # uncomment the following, if you want to allow the usage of your custom CFLAGS and LDFLAGS
47 #patch -i $srcdir/patch
49 msg "Starting make..."
54 cd "${srcdir}/${_gitname}-build"
55 make PREFIX="${pkgdir}/usr" install
57 md5sums=('aa80c7d48a1e7f51f9dcafbdb2eadee4')