mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 09:44:36 +08:00
71 lines
2.0 KiB
Bash
71 lines
2.0 KiB
Bash
pkgbase=gst-plugins-base
|
|
pkgname=('gst-plugins-base-libs' 'gst-plugins-base')
|
|
pkgver=1.14.1
|
|
pkgrel=1
|
|
pkgdesc="GStreamer Multimedia Framework Base Plugins"
|
|
url="https://gstreamer.freedesktop.org/"
|
|
arch=('x86_64')
|
|
license=('LGPL')
|
|
makedepends=('pkgconfig' 'gstreamer' 'orc' 'libxv' 'alsa-lib' 'cdparanoia' 'libvisual' 'libvorbis' 'libtheora' 'pango' 'gobject-introspection' 'python2' 'iso-codes' 'libgudev' 'mesa')
|
|
options=(!emptydirs)
|
|
_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')
|
|
|
|
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
|
|
./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() {
|
|
cd $pkgbase
|
|
# Testsuite fails on one test. Some refcount leak
|
|
make check || :
|
|
}
|
|
|
|
package_gst-plugins-base-libs() {
|
|
pkgdesc="GStreamer Multimedia Framework Base Plugin libraries"
|
|
depends=('gstreamer' 'orc' 'libxv' 'iso-codes' 'libgudev' 'mesa')
|
|
|
|
cd $pkgbase
|
|
make DESTDIR="${pkgdir}" install
|
|
make -C ext DESTDIR="$pkgdir" uninstall
|
|
}
|
|
|
|
package_gst-plugins-base() {
|
|
depends=("gst-plugins-base-libs=$pkgver" 'alsa-lib' 'cdparanoia' 'libvisual' 'libvorbis' 'libtheora' 'pango')
|
|
|
|
cd $pkgbase
|
|
make -C gst-libs DESTDIR="${pkgdir}" install
|
|
make -C ext DESTDIR="${pkgdir}" install
|
|
make -C gst-libs DESTDIR="${pkgdir}" uninstall
|
|
}
|