contrib/gst-python3/Pkgfile

27 lines
748 B
Plaintext

# Description: Python bindings for gstreamer.
# URL: https://gstreamer.freedesktop.org/modules/gst-python.html
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gst-plugins-base python3-gobject
name=gst-python3
version=1.22.6
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=plain \
-D python=/usr/bin/python3
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
/usr/bin/python3 -m compileall -d /usr/lib $PKG/usr/lib
/usr/bin/python3 -O -m compileall -d /usr/lib $PKG/usr/lib
/usr/bin/python3 -OO -m compileall -d /usr/lib $PKG/usr/lib
}