summaryrefslogblamecommitdiff
path: root/user/feh/APKBUILD
blob: 1ea78d33e736ccb2fb2147bfb5002f6b47a20e4b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                                         
             









                                                                         
                                                             





















                                                                       
                                                                                                                                                                 
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=feh
pkgver=2.25.1
pkgrel=0
pkgdesc="feh is a fast, lightweight image viewer which uses imlib2"
url="http://feh.finalrewind.org/"
arch="all"
license="MIT-feh"
subpackages="$pkgname-doc"
depends=
makedepends="libxt-dev libpng-dev giblib-dev imlib2-dev libjpeg-turbo-dev
	libxinerama-dev curl-dev libexif-dev"
checkdepends="perl-utils perl-test-command"
source="https://feh.finalrewind.org/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

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="a821d46901d4cf59bb09b911f28c6ab26fbd0ee9784b50fbacfb6cf23483da5d29ebbb4cc53b23289181bb3ba0dc9893a3f39a90b3420d0bd98d740d5583fc3e  feh-2.25.1.tar.bz2"