aboutsummaryrefslogtreecommitdiffstats
path: root/main/feh/APKBUILD
blob: a87c3b1d1517c25dbc5aed9021d201c4943d2570 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=feh
pkgver=3.1
pkgrel=0
pkgdesc="Fast, lightweight image viewer which uses imlib2"
url="https://feh.finalrewind.org"
arch="all"
license="MIT-feh"
subpackages="$pkgname-doc"
makedepends="curl-dev giblib-dev imlib2-dev libjpeg-turbo-dev libpng-dev
	libxinerama-dev libxt-dev"
source="https://feh.finalrewind.org/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

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

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="e524a8ce06b2f6a4864fde5f308da4aa7ac14755bc55cf8dbe7a37a264b5ef4fb86bdc6f79e3df022666e8e1f77305eb6e380f494263165cb115cdf0811fd73a  feh-3.1.tar.bz2"