2015-10-31 16:10:32 +01:00
|
|
|
# Description: Python bindings for gstreamer.
|
2017-02-15 13:14:36 +01:00
|
|
|
# URL: https://gstreamer.freedesktop.org/modules/gst-python.html
|
2015-10-31 16:10:32 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-09-27 16:06:44 +02:00
|
|
|
# Depends on: gst-plugins-base python-gobject python3-gobject
|
|
|
|
|
|
|
|
## python3-gobject is required for pkgconfig and headers
|
2015-10-31 16:10:32 +01:00
|
|
|
|
|
|
|
name=gst-python
|
2019-12-10 11:19:38 +01:00
|
|
|
version=1.16.2
|
2015-10-31 16:10:32 +01:00
|
|
|
release=1
|
2017-02-15 13:14:36 +01:00
|
|
|
source=(https://gstreamer.freedesktop.org/src/gst-python/gst-python-$version.tar.xz)
|
2015-10-31 16:10:32 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd gst-python-$version
|
2019-10-06 09:39:43 +02:00
|
|
|
|
|
|
|
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
|
2015-10-31 16:10:32 +01:00
|
|
|
}
|