desktop/libopenglrecorder/PKGBUILD
2018-02-02 00:11:23 +01:00

43 lines
1.1 KiB
Bash

pkgname=libopenglrecorder
pkgver=0.1.0
pkgrel=2
pkgdesc="A library allowing optional async readback OpenGL frame buffer with optional audio recording"
arch=('x86_64')
url="https://github.com/Benau/libopenglrecorder"
license=('BSD')
depends=('libjpeg-turbo' 'libvpx' 'openh264' 'libpulse')
makedepends=('git' 'cmake' 'make')
provides=('libopenglrecorder')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('a90a99c23f868636f77003a8dc6ffe6c3699fc2759c47df5dbd44ff8b42d2e4f')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
[ -d build ] && rm -rf build
mkdir build
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
cmake \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_WITH_VPX=ON \
-DBUILD_WITH_H264=ON \
-DBUILD_RECORDER_WITH_SOUND=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd build
make DESTDIR="${pkgdir}" install
}