summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 489828436b77721484ecf6ed2c1f997852bc0747 (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
# Maintainer: ahub <ahub@riseup.net>
pkgname=wf-recorder-git
_pkgname=wf-recorder
pkgver=r139.2bb52d8
pkgrel=1
license=("MIT")
pkgdesc="A video recorder for wlroots-based compositors like sway or wayfire"
makedepends=("scdoc" "meson" "git" "wayland-protocols" "ninja")
depends=(
	"wayland" "ffmpeg" "x264" "opencl-headers" "ocl-icd"
)
optdepends=(
    "slurp: limit recording to a part of the screen"
)
arch=("i686" "x86_64" "aarch64")
url="https://github.com/ammen99/wf-recorder"
source=("${pkgname%-*}::git+https://github.com/ammen99/wf-recorder")
sha1sums=("SKIP")
provides=("wf-recorder")
conflicts=("wf-recorder")

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

build() {
	cd "${srcdir}/${_pkgname}"
	meson --prefix=/usr build
	cd build
	ninja
}

package() {
	cd "${srcdir}/${_pkgname}/build"
	DESTDIR="$pkgdir" ninja install
}