[arch-commits] Commit in gst-python/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Saturday, September 12, 2020 @ 01:17:25 Author: heftig Revision: 395807 archrelease: copy trunk to testing-x86_64 Added: gst-python/repos/testing-x86_64/ gst-python/repos/testing-x86_64/PKGBUILD (from rev 395801, gst-python/trunk/PKGBUILD) --+ PKGBUILD | 40 1 file changed, 40 insertions(+) Copied: gst-python/repos/testing-x86_64/PKGBUILD (from rev 395801, gst-python/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2020-09-12 01:17:25 UTC (rev 395807) @@ -0,0 +1,40 @@ +# Maintainer: Jan Alexander Steffens (heftig) +# Contributor: Sergej Pupykin +# Contributor: Jan de Groot + +pkgname=gst-python +pkgver=1.18.0 +pkgrel=1 +pkgdesc="Multimedia graph framework - python bindings" +url="https://gstreamer.freedesktop.org/; +arch=(x86_64) +license=(LGPL) +depends=(python-gobject gst-plugins-base-libs) +makedepends=(git meson) +_commit=a85f99e274fe14348645c61606463ff63ceb45eb # tags/1.18.0^0 +source=("git+https://gitlab.freedesktop.org/gstreamer/gst-python.git#commit=$_commit;) +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $pkgname +} + +build() { + arch-meson $pkgname build + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package() { + DESTDIR="$pkgdir" meson install -C build + python -m compileall -d /usr/lib "$pkgdir/usr/lib" + python -O -m compileall -d /usr/lib "$pkgdir/usr/lib" +}
[arch-commits] Commit in gst-python/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Monday, April 22, 2019 @ 22:52:47 Author: heftig Revision: 351964 archrelease: copy trunk to testing-x86_64 Added: gst-python/repos/testing-x86_64/ gst-python/repos/testing-x86_64/PKGBUILD (from rev 351963, gst-python/trunk/PKGBUILD) --+ PKGBUILD | 73 + 1 file changed, 73 insertions(+) Copied: gst-python/repos/testing-x86_64/PKGBUILD (from rev 351963, gst-python/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-04-22 22:52:47 UTC (rev 351964) @@ -0,0 +1,73 @@ +# Maintainer: Jan Alexander Steffens (heftig) +# Contributor: Sergej Pupykin +# Contributor: Jan de Groot + +pkgbase=gst-python +pkgname=(gst-python gst-python2) +pkgver=1.16.0 +pkgrel=1 +pkgdesc="GStreamer Python binding overrides" +url="https://gstreamer.freedesktop.org/; +arch=(x86_64) +license=(LGPL) +makedepends=(python-gobject python2-gobject gst-plugins-base-libs git meson) +_commit=7f1b5fe985c2049351d0524e0f293272f63161d5 # tags/1.16.0^0 +source=("git+https://gitlab.freedesktop.org/gstreamer/gst-python.git#commit=$_commit; +"gst-common::git+https://gitlab.freedesktop.org/gstreamer/common.git;) +sha256sums=('SKIP' +'SKIP') + +pkgver() { + cd $pkgbase + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $pkgbase + + git submodule init + git config --local submodule.common.url "$srcdir/gst-common" + git submodule update +} + +_build() { + arch-meson $pkgbase build-$1 -D python=/usr/bin/$1 + ninja -C build-$1 +} + +_check() { + meson test -C build-$1 --print-errorlogs +} + +_package() { + DESTDIR="$pkgdir" meson install -C build-$1 + $1 -m compileall -d /usr/lib "$pkgdir/usr/lib" + $1 -O -m compileall -d /usr/lib "$pkgdir/usr/lib" +} + +build() { + _build python + _build python2 +} + +check() { + _check python + _check python2 +} + +package_gst-python() { + pkgdesc="${pkgdesc//Python/Python 3}" + depends=(python-gobject gst-plugins-base-libs) + + _package python +} + +package_gst-python2() { + pkgdesc="${pkgdesc//Python/Python 2}" + depends=(python2-gobject gst-plugins-base-libs) + + _package python2 + + # Remove conflicting loader + rm -r "$pkgdir/usr/lib/gstreamer-1.0" +}