[arch-commits] Commit in gst-python/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Mon Apr 22 22:52:38 UTC 2019
Date: Monday, April 22, 2019 @ 22:52:37
Author: heftig
Revision: 351963
1.16.0-1
Modified:
gst-python/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-22 22:38:55 UTC (rev 351962)
+++ PKGBUILD 2019-04-22 22:52:37 UTC (rev 351963)
@@ -4,14 +4,14 @@
pkgbase=gst-python
pkgname=(gst-python gst-python2)
-pkgver=1.14.4
+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)
-_commit=34b8ce18ca49dc8cb9d03f29d54640e1ef1d10b7 # tags/1.14.4^0
+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'
@@ -28,29 +28,31 @@
git submodule init
git config --local submodule.common.url "$srcdir/gst-common"
git submodule update
+}
- NOCONFIGURE=1 ./autogen.sh
+_build() {
+ arch-meson $pkgbase build-$1 -D python=/usr/bin/$1
+ ninja -C build-$1
+}
- cd ..
- cp -a $pkgbase py2
- cp -a $pkgbase py3
+_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() (
- cd py$1
- PYTHON=/usr/bin/python$1 ./configure --prefix=/usr
- make
-)
-
build() {
- _build 2
- _build 3
+ _build python
+ _build python2
}
check() {
- make -C py3 check
- make -C py2 check
+ _check python
+ _check python2
}
package_gst-python() {
@@ -57,7 +59,7 @@
pkgdesc="${pkgdesc//Python/Python 3}"
depends=(python-gobject gst-plugins-base-libs)
- make -C py3 DESTDIR="$pkgdir" install
+ _package python
}
package_gst-python2() {
@@ -64,5 +66,8 @@
pkgdesc="${pkgdesc//Python/Python 2}"
depends=(python2-gobject gst-plugins-base-libs)
- make -C py2 DESTDIR="$pkgdir" install
+ _package python2
+
+ # Remove conflicting loader
+ rm -r "$pkgdir/usr/lib/gstreamer-1.0"
}
More information about the arch-commits
mailing list