summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 775fb4599da7e6dbec9d2748f2462ba4ac56f53f (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
pkgver=4.0.0
pkgrel=1
pkgdesc='Simple image viewer written in C'
arch=('any')
url='https://github.com/mekb-turtle/Foto'
license=('MPL-2.0')
source=("foto::git+${url}.git#tag=v$pkgver")
sha256sums=(SKIP)
makedepends=('git' 'meson')
depends=('sdl2' 'sdl2_image')
provides=('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
}