31 lines
825 B
Plaintext
31 lines
825 B
Plaintext
# Description: Python bindings for gstreamer.
|
|
# URL: https://gstreamer.freedesktop.org/modules/gst-python.html
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: gst-plugins-base python-gobject python3-gobject
|
|
|
|
## python3-gobject is required for pkgconfig and headers
|
|
|
|
name=gst-python
|
|
version=1.16.2
|
|
release=1
|
|
source=(https://gstreamer.freedesktop.org/src/gst-python/gst-python-$version.tar.xz)
|
|
|
|
build() {
|
|
cd gst-python-$version
|
|
|
|
meson build \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
-D buildtype=release \
|
|
-D python=/usr/bin/python
|
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja -C build install
|
|
|
|
/usr/bin/python -m compileall -d /usr/lib $PKG/usr/lib
|
|
/usr/bin/python -O -m compileall -d /usr/lib $PKG/usr/lib
|
|
|
|
# Remove conflicting loader with gst-python3
|
|
rm -r $PKG/usr/lib/gstreamer-1.0
|
|
}
|