core/gst-plugins-base/PKGBUILD

71 lines
2.0 KiB
Bash
Raw Normal View History

2016-01-02 13:45:18 +08:00
pkgbase=gst-plugins-base
pkgname=('gst-plugins-base-libs' 'gst-plugins-base')
2018-05-24 05:54:20 +08:00
pkgver=1.14.1
2016-01-02 13:45:18 +08:00
pkgrel=1
pkgdesc="GStreamer Multimedia Framework Base Plugins"
2018-05-24 05:54:20 +08:00
url="https://gstreamer.freedesktop.org/"
arch=('x86_64')
license=('LGPL')
2018-05-24 05:54:20 +08:00
makedepends=('pkgconfig' 'gstreamer' 'orc' 'libxv' 'alsa-lib' 'cdparanoia' 'libvisual' 'libvorbis' 'libtheora' 'pango' 'gobject-introspection' 'python2' 'iso-codes' 'libgudev' 'mesa')
2016-01-02 13:45:18 +08:00
options=(!emptydirs)
2018-05-24 05:54:20 +08:00
_commit=d5a512b09fc491ee5ea7d5f6f5775c5a7da802b7 # tags/1.14.1^0
source=("git+https://anongit.freedesktop.org/git/gstreamer/gst-plugins-base#commit=$_commit"
"gst-common::git+https://anongit.freedesktop.org/git/gstreamer/common")
sha256sums=('SKIP'
'SKIP')
2018-05-24 05:54:20 +08:00
pkgver() {
cd $pkgbase
git describe --tags | sed 's/-/+/g'
}
2016-01-02 13:45:18 +08:00
2018-05-24 05:54:20 +08:00
prepare() {
cd $pkgbase
2016-01-02 13:45:18 +08:00
2018-05-24 05:54:20 +08:00
git submodule init
git config --local submodule.common.url "$srcdir/gst-common"
git submodule update
2016-01-02 13:45:18 +08:00
2018-05-24 05:54:20 +08:00
NOCONFIGURE=1 ./autogen.sh
}
2016-01-02 13:45:18 +08:00
2018-05-24 05:54:20 +08:00
build() {
cd $pkgbase
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
--with-package-name="GStreamer Base Plugins (Chakra Linux)" \
--with-package-origin="https://chakralinux.org/" \
--enable-experimental \
--disable-gtk-doc \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
2018-05-24 05:54:20 +08:00
cd $pkgbase
2016-01-02 13:45:18 +08:00
# Testsuite fails on one test. Some refcount leak
2018-05-24 05:54:20 +08:00
make check || :
}
2016-01-02 13:45:18 +08:00
package_gst-plugins-base-libs() {
pkgdesc="GStreamer Multimedia Framework Base Plugin libraries"
2018-05-24 05:54:20 +08:00
depends=('gstreamer' 'orc' 'libxv' 'iso-codes' 'libgudev' 'mesa')
2016-01-02 13:45:18 +08:00
2018-05-24 05:54:20 +08:00
cd $pkgbase
make DESTDIR="${pkgdir}" install
2018-05-24 05:54:20 +08:00
make -C ext DESTDIR="$pkgdir" uninstall
}
2016-01-02 13:45:18 +08:00
package_gst-plugins-base() {
depends=("gst-plugins-base-libs=$pkgver" 'alsa-lib' 'cdparanoia' 'libvisual' 'libvorbis' 'libtheora' 'pango')
2018-05-24 05:54:20 +08:00
cd $pkgbase
2016-01-02 13:45:18 +08:00
make -C gst-libs DESTDIR="${pkgdir}" install
make -C ext DESTDIR="${pkgdir}" install
make -C gst-libs DESTDIR="${pkgdir}" uninstall
}