PKGBUILDs/community/simplescreenrecorder/PKGBUILD

51 lines
1.6 KiB
Bash
Raw Normal View History

2014-07-04 17:28:36 +00:00
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Maarten Baert
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - cmake with -DENABLE_32BIT_GLINJECT="FALSE" -DENABLE_X86_ASM="FALSE" -DWITH_GLINJECT="FALSE"
2014-07-04 17:28:36 +00:00
pkgname=simplescreenrecorder
pkgver=0.4.4
pkgrel=2
2014-07-04 17:28:36 +00:00
pkgdesc="A feature-rich screen recorder that supports X11 and OpenGL."
arch=("x86_64")
url="https://www.maartenbaert.be/simplescreenrecorder/"
2014-07-04 17:28:36 +00:00
license=("GPL3")
depends=("qt5-base" "qt5-x11extras"
"ffmpeg" "alsa-lib" "libpulse" "jack" "libgl" "glu"
"libx11" "libxext" "libxfixes" "libxi" "libxinerama"
"desktop-file-utils" "gtk-update-icon-cache")
2014-07-04 17:28:36 +00:00
optdepends=("lib32-simplescreenrecorder: OpenGL recording of 32-bit applications")
makedepends=("git" "cmake" "qt5-tools")
source=("git+https://github.com/MaartenBaert/ssr.git#tag=$pkgver"
ffmpeg5.patch::https://patch-diff.githubusercontent.com/raw/MaartenBaert/ssr/pull/934.patch)
sha256sums=('SKIP'
'4b01938615a34127236a21ee0ffa20bbb179c8bfcc5ecef872fc5a246727d2e1')
2014-07-04 17:28:36 +00:00
install=simplescreenrecorder.install
prepare() {
2014-07-04 17:28:36 +00:00
cd ssr
mkdir -p build
patch -p1 -i ../ffmpeg5.patch # Fix build with ffmpeg 5
}
build() {
cd ssr/build
# fPIC is only required for qt5 + gcc5
#CXXFLAGS="$CXXFLAGS -fPIC"
#./configure --prefix=/usr --disable-assert --with-qt5
#./configure --prefix=/usr --disable-assert
# -DLRELEASE='/usr/bin/lrelease-qt4' \
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release \
-DWITH_QT5=on \
-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() {
cd ssr/build
2014-07-04 17:28:36 +00:00
make DESTDIR="$pkgdir" install
}