summaryrefslogtreecommitdiffstats
path: root/testing/viewnior/APKBUILD
blob: d9d7e1987e9c2ac128be26f928a56b04cacb1383 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=viewnior
pkgver=1.4
pkgrel=0
pkgdesc="A fast and simple image viewer for GNU/Linux"
url="http://siyanpanayotov.com/project/viewnior"
arch="all"
license="GPL3"
depends=""
depends_dev="gtk+2.0-dev exiv2-dev"
makedepends="$depends_dev autoconf automake gnome-common libtool"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/xsisqox/Viewnior/archive/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/Viewnior-$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./autogen.sh || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e5ae60047f2941a228c0a121e07fe09b  viewnior-1.4.tar.gz"
sha256sums="44beaeaadf843ce2f63e339994f18ae6c524b23c967379441738ecff6c436b00  viewnior-1.4.tar.gz"
sha512sums="b9c72e24066a5bee7a94d35d74acb8e60adceb319754c96132709a441fe6b5e095c3bcf475091e959f28f5e5c0ff2062225f9749d1cb7c2f7ba794a025b5321f  viewnior-1.4.tar.gz"