summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c87dee2e7e9cfbf9fda689e396e2aa896dc803e (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
33
34
35
36
37
38
39
40
41
42
pkgname=identity
pkgver=0.6.0
pkgrel=2
pkgdesc='Compare multiple versions of an image or video'
arch=(x86_64)
url=https://gitlab.gnome.org/YaLTeR/identity
license=(GPL3)
depends=(
	libadwaita
	dav1d
	libwebp
	gst-plugin-gtk4
)
makedepends=(
	meson
	rust
	blueprint-compiler
	gobject-introspection
	python-gobject
)
source=(https://gitlab.gnome.org/YaLTeR/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)
sha256sums=('5ae1ef8129dab503d49ecae984021710c9df5f322b054c7ac2f488747b0d76e0')

prepare() {
	cd ${pkgname}-v${pkgver}
	# Binary conflict with mesa-demos
	sed -i "s/output: meson.project_name()/output: 'identity-compare'/g" src/meson.build
	sed -i "s/Exec=identity/Exec=identity-compare/g" data/org.gnome.gitlab.YaLTeR.Identity.desktop.in.in
}

build() {
	arch-meson ${pkgname}-v${pkgver} build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	DESTDIR="${pkgdir}" ninja install -C build
}