mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:17:15 +08:00
libopenglrecorder: import as supertuxkart new dependency
This commit is contained in:
parent
329eb20bc3
commit
e54d294357
42
libopenglrecorder/PKGBUILD
Normal file
42
libopenglrecorder/PKGBUILD
Normal file
@ -0,0 +1,42 @@
|
||||
pkgname=libopenglrecorder
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user