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