2017-02-04 10:55:09 +08:00
|
|
|
# Contribution from Arch: https://www.archlinux.org/packages/multilib/x86_64/lib32-gst-plugins-base/
|
2016-03-05 10:27:02 +08:00
|
|
|
|
|
|
|
_basename=gst-plugins-base
|
|
|
|
pkgbase=lib32-$_basename
|
|
|
|
pkgname=('lib32-gst-plugins-base-libs' 'lib32-gst-plugins-base')
|
2017-02-04 10:55:09 +08:00
|
|
|
pkgver=1.10.3
|
2016-03-05 10:27:02 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="GStreamer Multimedia Framework Base Plugins"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('LGPL')
|
2017-02-04 10:55:09 +08:00
|
|
|
makedepends=('lib32-gstreamer' 'lib32-orc' 'lib32-libxv' 'lib32-alsa-lib' 'lib32-cdparanoia' 'lib32-gcc-libs'
|
|
|
|
'lib32-libvorbis' 'lib32-libvisual' 'lib32-libtheora' 'lib32-pango' 'lib32-opus' 'gobject-introspection')
|
2016-03-05 10:27:02 +08:00
|
|
|
options=(!emptydirs)
|
|
|
|
url="http://gstreamer.freedesktop.org/"
|
2017-02-04 10:55:09 +08:00
|
|
|
source=(${url}/src/$_basename/$_basename-${pkgver}.tar.xz{,.asc})
|
|
|
|
sha256sums=('e6299617d705a0cbfb535107c1d3a8fc0f0967f14193a8c5c7583f46a88b1710'
|
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('7F4BC7CC3CA06F97336BBFEB0668CC1486C2D7B5')
|
2016-03-05 10:27:02 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $_basename-$pkgver
|
|
|
|
|
|
|
|
export CC='gcc -m32'
|
|
|
|
export CXX='g++ -m32'
|
|
|
|
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
|
|
|
|
2017-02-04 10:55:09 +08:00
|
|
|
./configure \
|
|
|
|
--build=i686-pc-linux-gnu \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib32 \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--disable-static \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-gtk-doc-html \
|
|
|
|
--disable-maintainer-mode \
|
2016-03-05 10:27:02 +08:00
|
|
|
--enable-experimental \
|
2017-02-04 10:55:09 +08:00
|
|
|
--with-package-name="GStreamer Base Plugins (Chakra GNU/Linux)" \
|
|
|
|
--with-package-origin="https://chakralinux.org"
|
2016-03-05 10:27:02 +08:00
|
|
|
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
sed -e 's/^SUBDIRS_EXT =.*/SUBDIRS_EXT =/' -i Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $_basename-$pkgver
|
|
|
|
# Testsuite fails on one test. Some refcount leak
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package_lib32-gst-plugins-base-libs() {
|
|
|
|
pkgdesc="GStreamer Multimedia Framework Base Plugin libraries"
|
|
|
|
depends=('lib32-gstreamer' 'lib32-orc' 'lib32-libxv')
|
|
|
|
|
|
|
|
cd $_basename-$pkgver
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
rm -Rf ${pkgdir}/usr/share
|
|
|
|
rm -Rf ${pkgdir}/usr/include
|
|
|
|
rm -Rf ${pkgdir}/usr/bin
|
|
|
|
}
|
|
|
|
|
|
|
|
package_lib32-gst-plugins-base() {
|
2017-02-04 10:55:09 +08:00
|
|
|
depends=("lib32-gst-plugins-base-libs=$pkgver" 'lib32-alsa-lib' 'lib32-cdparanoia'
|
|
|
|
'lib32-libvisual' 'lib32-libvorbis' 'lib32-libtheora' 'lib32-pango' 'lib32-opus')
|
2016-03-05 10:27:02 +08:00
|
|
|
|
|
|
|
cd $_basename-$pkgver
|
|
|
|
make -C gst-libs DESTDIR="${pkgdir}" install
|
|
|
|
make -C ext DESTDIR="${pkgdir}" install
|
|
|
|
make -C gst-libs DESTDIR="${pkgdir}" uninstall
|
|
|
|
|
|
|
|
# Seems to be no build flag to turn this crap off, soo...
|
|
|
|
rm -Rf ${pkgdir}/usr/share
|
|
|
|
rm -Rf ${pkgdir}/usr/include
|
|
|
|
rm -Rf ${pkgdir}/usr/bin
|
|
|
|
}
|