blob: d0aa2952c410c654b5e553c43c26ec0bd2b34758 (
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
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Sergey A. <murlakatamenka@disroot.org>
# Contributor: Magnus Boman
_pkgname=replay-sorcery
pkgname=$_pkgname-git
pkgver=r282.d8d5921
pkgrel=3
pkgdesc='Open-source, instant-replay solution for Linux'
url='https://github.com/matanui159/ReplaySorcery'
arch=(x86_64 i686)
license=(GPL-3.0-only)
depends=(ffmpeg libx11 gcc-libs)
optdepends=('pulseaudio: recording audio'
'libdrm: listing kms devices')
makedepends=(git cmake)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+${url}.git"
'git+https://github.com/ianlancetaylor/libbacktrace.git'
'0000-include-avutil-ch-layout.patch')
sha256sums=('SKIP'
'SKIP'
'5404e7d26db1eb8e051844d65c2182f9dfac813243d093ea8e4c4ae97bc548da')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
git submodule init
git config submodule."dep/libbacktrace".url ../libbacktrace
git -c protocol.file.allow=always submodule update
git apply ${srcdir}/0000-include-avutil-ch-layout.patch
}
build() {
cd "$_pkgname"
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make -C build
}
package() {
cd "$_pkgname"
DESTDIR=${pkgdir} make -C build install
}
|