summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7db443100dc20db045c542ee06266df900717224 (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
43
# Maintainer: Daniel Playfair Cal <daniel.playfair.cal@gmail.com>

pkgname=dewobble-git
_pkgname=dewobble
pkgver=v1.0.0.r0.g4d49006
pkgrel=1
pkgdesc="Video stabilisation library with awareness of lens projections"
url="https://git.sr.ht/~hedgepigdaniel/dewobble"
arch=(x86_64)
license=(GPL3)
depends=(opencl-driver opencv gram-savitzky-golay)
makedepends=(git meson opencl-clhpp)
provides=(dewobble)
conflicts=(dewobble)
source=("git+https://git.sr.ht/~hedgepigdaniel/dewobble")
md5sums=('SKIP')


pkgver() {
	cd "$_pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "$_pkgname"
	if check_option debug y; then
		BUILD_TYPE=debug
	else
		BUILD_TYPE=plain
	fi
	arch-meson --buildtype $BUILD_TYPE build
}

build() {
	cd "$_pkgname"
	meson compile -C build
}

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