summaryrefslogtreecommitdiffstats
path: root/main/feh/APKBUILD
blob: e36b8b73fa2a714f9ad4ef85aae9e8ca6bc81ae8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=feh
pkgver=2.9.2
pkgrel=0
pkgdesc="feh is a fast, lightweight image viewer which uses imlib2"
url="http://www.linuxbrit.co.uk/feh/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="libxt-dev libpng-dev giblib-dev imlib2-dev libjpeg-turbo-dev 
	libxinerama-dev curl-dev"
source="https://derf.homelinux.org/~derf/projects/${pkgname}/${pkgname}-${pkgver}.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	sed -i -e "s:/usr/local:/usr:g" config.mk
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR=$pkgdir docsdir=/usr/share/doc/feh install || return 1
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="2a179cc12e0f7bf704b0dcf877d10e70  feh-2.9.2.tar.bz2"
sha256sums="24d0be004b16207981aa37a24da9eb72718978ffec28be1eeea64b9541d66d3e  feh-2.9.2.tar.bz2"
sha512sums="3d1c9b80a67e659735bd5d605d041f66158ac945295fa7eb604ea8008564e9f81da0b48b8d8c285dcd1f9066976297af069c28e568d12a1034513fdd15754a0b  feh-2.9.2.tar.bz2"