2014-07-04 17:28:36 +00:00
|
|
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
|
|
|
# Contributor: Maarten Baert
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2018-01-17 20:55:10 +00:00
|
|
|
# - cmake with -DENABLE_32BIT_GLINJECT="FALSE" -DENABLE_X86_ASM="FALSE" -DWITH_GLINJECT="FALSE"
|
2014-07-04 17:28:36 +00:00
|
|
|
|
|
|
|
pkgname=simplescreenrecorder
|
2020-12-27 16:42:45 +00:00
|
|
|
pkgver=0.4.3
|
2022-02-17 19:32:14 +00:00
|
|
|
pkgrel=2
|
2014-07-04 17:28:36 +00:00
|
|
|
pkgdesc="A feature-rich screen recorder that supports X11 and OpenGL."
|
2018-01-17 20:55:10 +00:00
|
|
|
arch=("x86_64")
|
2020-04-26 22:48:19 +00:00
|
|
|
url="https://www.maartenbaert.be/simplescreenrecorder/"
|
2014-07-04 17:28:36 +00:00
|
|
|
license=("GPL3")
|
2018-02-01 19:04:48 +00:00
|
|
|
depends=("qt5-base" "qt5-x11extras"
|
2018-01-31 20:23:38 +00:00
|
|
|
"ffmpeg" "alsa-lib" "libpulse" "jack" "libgl" "glu"
|
2020-04-26 22:48:19 +00:00
|
|
|
"libx11" "libxext" "libxfixes" "libxi" "libxinerama"
|
2016-04-29 00:19:05 +00:00
|
|
|
"desktop-file-utils" "gtk-update-icon-cache")
|
2014-07-04 17:28:36 +00:00
|
|
|
optdepends=("lib32-simplescreenrecorder: OpenGL recording of 32-bit applications")
|
2018-02-01 19:04:48 +00:00
|
|
|
makedepends=("git" "cmake" "qt5-tools")
|
2022-02-17 19:32:14 +00:00
|
|
|
source=("git+https://github.com/MaartenBaert/ssr.git#tag=$pkgver"
|
|
|
|
ffmpeg5.patch::https://patch-diff.githubusercontent.com/raw/MaartenBaert/ssr/pull/934.patch)
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'4ef035d6c45d146a06b9953075173185')
|
2014-07-04 17:28:36 +00:00
|
|
|
|
|
|
|
install=simplescreenrecorder.install
|
|
|
|
|
2018-01-17 20:55:10 +00:00
|
|
|
prepare() {
|
2014-07-04 17:28:36 +00:00
|
|
|
cd ssr
|
2018-01-17 20:55:10 +00:00
|
|
|
mkdir -p build
|
2022-02-17 19:32:14 +00:00
|
|
|
|
|
|
|
patch -p1 -i ../ffmpeg5.patch # Fix build with ffmpeg 5
|
2018-01-17 20:55:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ssr/build
|
2015-05-30 21:10:57 +00:00
|
|
|
# fPIC is only required for qt5 + gcc5
|
2015-11-03 13:25:41 +00:00
|
|
|
#CXXFLAGS="$CXXFLAGS -fPIC"
|
|
|
|
#./configure --prefix=/usr --disable-assert --with-qt5
|
2018-01-17 20:55:10 +00:00
|
|
|
#./configure --prefix=/usr --disable-assert
|
2018-01-31 20:23:38 +00:00
|
|
|
# -DLRELEASE='/usr/bin/lrelease-qt4' \
|
2018-01-17 20:55:10 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release \
|
2018-01-31 20:23:38 +00:00
|
|
|
-DWITH_QT5=on \
|
2018-01-17 20:55:10 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR='lib' ../ \
|
|
|
|
-DENABLE_32BIT_GLINJECT="FALSE" -DENABLE_X86_ASM="FALSE" -DWITH_GLINJECT="FALSE"
|
2014-07-04 17:28:36 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
package() {
|
2018-01-17 20:55:10 +00:00
|
|
|
cd ssr/build
|
2014-07-04 17:28:36 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|