Date: Sunday, October 9, 2016 @ 12:07:37 Author: heftig Revision: 277957
1.9.90+12+g667931e-1 Modified: gst-plugins-base/trunk/PKGBUILD ----------+ PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-10-09 11:39:10 UTC (rev 277956) +++ PKGBUILD 2016-10-09 12:07:37 UTC (rev 277957) @@ -2,26 +2,44 @@ # Maintainer: Jan de Groot <[email protected]> pkgbase=gst-plugins-base -pkgname=('gst-plugins-base-libs' 'gst-plugins-base') -pkgver=1.8.3 +pkgname=(gst-plugins-base-libs gst-plugins-base) +pkgver=1.9.90+12+g667931e pkgrel=1 pkgdesc="GStreamer Multimedia Framework Base Plugins" -arch=('i686' 'x86_64') -license=('LGPL') -makedepends=('pkgconfig' 'gstreamer' 'orc' 'libxv' 'alsa-lib' 'cdparanoia' 'libvisual' 'libvorbis' - 'libtheora' 'pango' 'gobject-introspection' 'opus') +url="https://gstreamer.freedesktop.org/" +arch=(i686 x86_64) +license=(LGPL) +makedepends=(pkgconfig gstreamer orc libxv alsa-lib cdparanoia libvisual libvorbis + libtheora pango gobject-introspection opus gtk-doc autoconf-archive git) options=(!emptydirs) -url="https://gstreamer.freedesktop.org/" -source=(${url}/src/$pkgbase/$pkgbase-${pkgver}.tar.xz) -sha256sums=('114871d4d63606b4af424a8433cd923e4ff66896b244bb7ac97b9da47f71e79e') +_commit=667931e52a59af88c864a207e5fc4bdc8c5ae783 # master +source=("git://anongit.freedesktop.org/gstreamer/gst-plugins-base#commit=$_commit" + "gst-common::git://anongit.freedesktop.org/gstreamer/common") +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 + + NOCONFIGURE=1 ./autogen.sh +} + build() { - cd $pkgbase-$pkgver + cd $pkgbase - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --disable-static --enable-experimental \ + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \ --with-package-name="GStreamer Base Plugins (Arch Linux)" \ - --with-package-origin="http://www.archlinux.org/" + --with-package-origin="http://www.archlinux.org/" \ + --enable-experimental --enable-gtk-doc --disable-static # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool @@ -32,25 +50,24 @@ } check() { - cd $pkgbase-$pkgver - # Testsuite fails on one test. Some refcount leak + cd $pkgbase make check } package_gst-plugins-base-libs() { pkgdesc="GStreamer Multimedia Framework Base Plugin libraries" - depends=('gstreamer' 'orc' 'libxv') + depends=(gstreamer orc libxv) - cd $pkgbase-$pkgver - make DESTDIR="${pkgdir}" install + cd $pkgbase + make DESTDIR="$pkgdir" install } package_gst-plugins-base() { - depends=("gst-plugins-base-libs=$pkgver" 'alsa-lib' 'cdparanoia' 'libvisual' 'libvorbis' - 'libtheora' 'pango' 'opus') + depends=("gst-plugins-base-libs=$pkgver" alsa-lib cdparanoia libvisual libvorbis + libtheora pango opus) - cd $pkgbase-$pkgver - make -C gst-libs DESTDIR="${pkgdir}" install - make -C ext DESTDIR="${pkgdir}" install - make -C gst-libs DESTDIR="${pkgdir}" uninstall + cd $pkgbase + make -C gst-libs DESTDIR="$pkgdir" install + make -C ext DESTDIR="$pkgdir" install + make -C gst-libs DESTDIR="$pkgdir" uninstall }
