summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4160222625af643b00736517b406484de618fd99 (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
# Maintainer: Luigi311 <luigi311.lg@gmail.com>
pkgname=megapixels-ppp-git
pkgver=1.0
pkgrel=1
pkgdesc='GTK4 camera application that knows how to deal with the media request api'
arch=('x86_64' 'aarch64')
url="https://github.com/kgmt0/megapixels"
license=('LGPL')
depends=('gtk4' 'zbar' 'feedbackd-git')
makedepends=('meson')
checkdepends=()
optdepends=()
provides=('megapixels')
conflicts=('megapixels')
replaces=('megapixels')
source=(megapixels-ppp::git+https://github.com/kgmt0/megapixels.git)
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

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

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