blob: b259c38853a4d638599585590c30f1cffa280735 (
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
40
41
42
43
44
45
46
47
48
|
# Maintainer: Chris Down <chris@chrisdown.name>
# Contributor: Jason Ryan <jasonwryan@gmail.com>
# Contributor: Steven Allen <steven@stebalien.com>
# Contributor: Army
# Contributor: Bastien Dejean <baskerville@lavabit.com>
_name=sxiv
pkgname="${_name}-photoorg-git"
pkgver=0.r907.e907737
pkgrel=1
pkgdesc="Simple X Image Viewer, photo organiser version"
arch=('i686' 'x86_64')
url="https://github.com/cdown/${_name}"
license=('GPL2')
depends=('imlib2' 'desktop-file-utils' 'xdg-utils' 'hicolor-icon-theme' 'libexif' 'libxft' 'giflib' 'libwebp')
makedepends=('git')
provides=(nsxiv)
conflicts=(nsxiv)
source=("${_name}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
printf '0.r%s.%s' \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_name}"
# use your customisations if present
[[ -f $SRCDEST/config.h ]] && cp "$SRCDEST"/config.h .
# Allow custom FLAGS
sed -i Makefile -e 's|^CFLAGS\s*=|CFLAGS +=|' -e 's|^LDFLAGS\s*=|LDFLAGS +=|'
}
build() {
cd "$srcdir/${_name}"
export CFLAGS="$CFLAGS $CPPFLAGS"
make PREFIX="/usr"
}
package() {
cd "$srcdir/${_name}"
make PREFIX="/usr" DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|