aboutsummaryrefslogtreecommitdiffstats
path: root/community/sxiv/APKBUILD
blob: b1f887f0c3bf5067e9663f7faf61eb15b2236393 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=sxiv
pkgver=25
pkgrel=0
pkgdesc="Simple X Image Viewer"
url="https://github.com/muennich/sxiv"
arch="all"
license="GPL-2.0"
makedepends="imlib2-dev giflib-dev libexif-dev libxft-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	make -C "$builddir"
}

check() {
	cd "$builddir"
	./sxiv -help > /dev/null
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" \
		-C "$builddir" install
	install -Dm644 "$builddir"/README.md \
		"$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="ca0d834c9982c5e98c0bae51d21b7d08692af2d692eeb2ac55e19c4da7d09b16bbaa8022af0a0d00c52def4120058d895f37a2f8b14f453a0ceb65eebe564814  sxiv-25.tar.gz"