summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a81d11d6178e3d2c24f673315763f3cb2a3f04d (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
# Maintainer: mekb https://github.com/mekb-turtle
# shellcheck disable=SC2034
pkgname=foto-git
pkgver=2.0.2.r2.g5b60f73
pkgrel=1
pkgdesc='Simple image viewer written in C - Git release'
arch=('any')
url='https://github.com/mekb-turtle/foto'
license=('MPL-2.0')
source=("foto::git+${url}.git")
sha256sums=(SKIP)
makedepends=('git' 'pandoc')
depends=('sdl2' 'sdl2_image')
provides=('foto')
conflicts=('foto')

package() {
	install -Dm755 "$srcdir/foto/build/release/bin/foto" "$pkgdir/usr/bin/foto"
}
build() {
	make RELEASE=1 -C "$srcdir/foto" build man
}
pkgver() {
	cd foto && git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}