blob: 001d5b7315ae96a43dd1b61971553d9392f0bba1 (
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: mekb https://github.com/mekb-turtle
# shellcheck disable=SC2034
pkgname=foto-git
pkgver=3.0.1.r0.g1a5bd4b
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' 'meson')
depends=('sdl2' 'sdl2_image')
provides=('foto')
conflicts=('foto')
package() {
cd "$srcdir/foto" || exit 1
meson install -C build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
build() {
cd "$srcdir/foto" || exit 1
meson setup build --prefix="$pkgdir/usr"
meson compile -C build
}
pkgver() {
cd foto && git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
|