summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 714f18393602eae2ccc6c13a67af4629e633d996 (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 <aur@luigi311.com>
pkgname=megapixels-ppp-git
pkgver=r1.03dc718a
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')
makedepends=('meson')
checkdepends=()
optdepends=()
provides=('megapixels')
conflicts=('megapixels')
replaces=('megapixels')
source=(megapixels-ppp-git::git+https://github.com/kgmt0/megapixels.git)
md5sums=('SKIP')

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

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

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

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