-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
40 lines (36 loc) · 1.31 KB
/
PKGBUILD
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
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: this.ven <misgi@ven.uber.space>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_name=ssr
pkgname=simplescreenrecorder
pkgver=0.4.4
pkgrel=3
pkgdesc='A feature-rich screen recorder that supports X11 and OpenGL'
arch=(x86_64)
url='https://www.maartenbaert.be/simplescreenrecorder'
license=(GPL3)
depends=(alsa-lib desktop-file-utils ffmpeg glu gtk-update-icon-cache jack
libgl libpulse libx11 libxext libxfixes libxi libxinerama qt5-base
qt5-x11extras)
makedepends=(cmake qt5-tools)
source=("$_name-$pkgver.tar.gz::https://github.com/MaartenBaert/$_name/archive/refs/tags/$pkgver.tar.gz"
ffmpeg5.patch::https://patch-diff.githubusercontent.com/raw/MaartenBaert/ssr/pull/934.patch)
sha256sums=('69fccf8df6e7285d4df5033eed8748f4eae13b407488906dcf4810a277d557b8'
'4b01938615a34127236a21ee0ffa20bbb179c8bfcc5ecef872fc5a246727d2e1')
prepare() {
cd $_name-$pkgver
mkdir -p build
patch -p1 -i "$srcdir"/ffmpeg5.patch # Fix build with ffmpeg 5
}
build() {
cd $_name-$pkgver/build
cmake -DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_QT5=on \
-DCMAKE_INSTALL_LIBDIR='lib' ../
make
}
package() {
cd $_name-$pkgver/build
make DESTDIR="$pkgdir" install
}