[arch-commits] Commit in gst-plugins-base/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Mon Apr 22 21:01:59 UTC 2019
Date: Monday, April 22, 2019 @ 21:01:58
Author: heftig
Revision: 351942
1.16.0-1
Modified:
gst-plugins-base/trunk/PKGBUILD
----------+
PKGBUILD | 56 ++++++++++++++++++++++++--------------------------------
1 file changed, 24 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-22 20:40:15 UTC (rev 351941)
+++ PKGBUILD 2019-04-22 21:01:58 UTC (rev 351942)
@@ -3,18 +3,18 @@
pkgbase=gst-plugins-base
pkgname=(gst-plugins-base-libs gst-plugins-base)
-pkgver=1.14.4+18+g3cc7cc757
+pkgver=1.16.0
pkgrel=1
-pkgdesc="GStreamer Multimedia Framework Base Plugins"
+pkgdesc="GStreamer open-source multimedia framework base plugins"
url="https://gstreamer.freedesktop.org/"
arch=(x86_64)
license=(LGPL)
depends=(gstreamer orc libxv iso-codes libgudev mesa)
makedepends=(alsa-lib cdparanoia libvisual libvorbis libtheora pango opus graphene libpng libjpeg
- gobject-introspection gtk-doc autoconf-archive git)
-checkdepends=(gtk3 qt5-base clutter sdl glu)
+ gobject-introspection gtk-doc git meson)
+checkdepends=(gtk3 qt5-base clutter sdl glu xorg-server-xvfb)
options=(!emptydirs)
-_commit=3cc7cc757627dd70550d0db485a1234d26f7e2b9 # 1.14
+_commit=e0f8f635a96a3639be4d519fcf234b619bb74ca6 # tags/1.16.0^0
source=("git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-base.git#commit=$_commit"
"gst-common::git+https://gitlab.freedesktop.org/gstreamer/common.git")
sha256sums=('SKIP'
@@ -31,38 +31,33 @@
git submodule init
git config --local submodule.common.url "$srcdir/gst-common"
git submodule update
-
- NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $pkgbase
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib \
- --with-package-name="GStreamer Base Plugins (Arch Linux)" \
- --with-package-origin="https://www.archlinux.org/" \
- --enable-experimental \
- --enable-gtk-doc \
- --disable-static
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
- make
+ arch-meson $pkgbase build \
+ -D tremor=disabled \
+ -D package-name="GStreamer Base Plugins (Arch Linux)" \
+ -D package-origin="https://www.archlinux.org/"
+ ninja -C build
}
-check() {
- cd $pkgbase
- # GL tests need hardware
- make check || :
-}
+check() (
+ mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
+ export XDG_RUNTIME_DIR
+ xvfb-run -s '+iglx -noreset' meson test -C build --print-errorlogs
+)
+
package_gst-plugins-base-libs() {
pkgdesc="${pkgdesc/Plugins/Libraries}"
- cd $pkgbase
- make DESTDIR="$pkgdir" install
- make -C ext DESTDIR="$pkgdir" uninstall
+ DESTDIR="$pkgdir" meson install -C build
+
+ mkdir -p ext/lib/gstreamer-1.0
+ for _x in alsa cdparanoia libvisual ogg opengl opus pango theora vorbis; do
+ _x="lib/gstreamer-1.0/libgst${_x}.so"
+ mv "$pkgdir/usr/$_x" "ext/$_x"
+ done
}
package_gst-plugins-base() {
@@ -69,8 +64,5 @@
depends=("gst-plugins-base-libs=$pkgver"
alsa-lib cdparanoia libvisual libvorbis libtheora pango opus graphene libpng libjpeg)
- cd $pkgbase
- make -C gst-libs DESTDIR="$pkgdir" install
- make -C ext DESTDIR="$pkgdir" install
- make -C gst-libs DESTDIR="$pkgdir" uninstall
+ mv ext "$pkgdir/usr"
}
More information about the arch-commits
mailing list