contrib/gst-python3/Pkgfile

27 lines
748 B
Plaintext
Raw Normal View History

2018-09-27 16:07:29 +02:00
# Description: Python bindings for gstreamer.
# URL: https://gstreamer.freedesktop.org/modules/gst-python.html
2023-03-05 14:06:46 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2018-09-27 16:07:29 +02:00
# Depends on: gst-plugins-base python3-gobject
name=gst-python3
2023-03-05 14:06:46 +01:00
version=1.22.1
2018-09-27 16:07:29 +02:00
release=1
source=(https://gstreamer.freedesktop.org/src/gst-python/gst-python-$version.tar.xz)
build() {
2023-03-05 14:06:46 +01:00
cd gst-python-$version
2018-09-27 16:07:29 +02:00
2023-03-05 14:06:46 +01:00
meson build \
--prefix=/usr \
--libexecdir=/usr/lib \
-D buildtype=plain \
-D python=/usr/bin/python3
2019-10-06 09:40:08 +02:00
2023-03-05 14:06:46 +01:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2019-10-06 09:40:08 +02:00
2023-03-05 14:06:46 +01:00
/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
2018-09-27 16:07:29 +02:00
}