summaryrefslogtreecommitdiff
path: root/user/feh/APKBUILD
blob: 208f9e87e98f5a7c311eaca5a138d1ee5bab8d26 (plain) (blame)
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
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=feh
pkgver=2.28
pkgrel=0
pkgdesc="feh is a fast, lightweight image viewer which uses imlib2"
url="https://feh.finalrewind.org/"
arch="all"
license="MIT-feh"
depends=""
makedepends="curl-dev imlib2-dev libexif-dev libjpeg-turbo-dev libpng-dev
	libxinerama-dev libxt-dev"
checkdepends="perl-test-command"
subpackages="$pkgname-doc"
source="https://feh.finalrewind.org/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	make PREFIX=/usr curl=1 exif=1 xinerama=1
}

check() {
	cd "$builddir"
	make PREFIX=/usr test
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" \
		bin_dir="$pkgdir"/usr/bin \
		man_dir="$pkgdir"/usr/share/man \
		doc_dir="$pkgdir"/usr/share/doc/$pkgname \
		example_dir="$pkgdir"/usr/share/doc/$pkgname/examples \
		install
}

sha512sums="565a5aa0ce1c29fb2f09995283dbf2e12e0f228294df7c1b744a545e4f550126e0b327e9903c9eb35cb7dbd96d69e4653c57f3b3cb2dc2475680b3c62b71e1d8  feh-2.28.tar.bz2"