lib32/lib32-gst-plugins-base/PKGBUILD

82 lines
2.5 KiB
Bash
Raw Normal View History

# Contribution from Arch: https://www.archlinux.org/packages/multilib/x86_64/lib32-gst-plugins-base/
_basename=gst-plugins-base
pkgbase=lib32-$_basename
pkgname=('lib32-gst-plugins-base-libs' 'lib32-gst-plugins-base')
pkgver=1.10.3
pkgrel=1
pkgdesc="GStreamer Multimedia Framework Base Plugins"
arch=('x86_64')
license=('LGPL')
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')
options=(!emptydirs)
url="http://gstreamer.freedesktop.org/"
source=(${url}/src/$_basename/$_basename-${pkgver}.tar.xz{,.asc})
sha256sums=('e6299617d705a0cbfb535107c1d3a8fc0f0967f14193a8c5c7583f46a88b1710'
'SKIP')
validpgpkeys=('7F4BC7CC3CA06F97336BBFEB0668CC1486C2D7B5')
build() {
cd $_basename-$pkgver
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
./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 \
--enable-experimental \
--with-package-name="GStreamer Base Plugins (Chakra GNU/Linux)" \
--with-package-origin="https://chakralinux.org"
# 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() {
depends=("lib32-gst-plugins-base-libs=$pkgver" 'lib32-alsa-lib' 'lib32-cdparanoia'
'lib32-libvisual' 'lib32-libvorbis' 'lib32-libtheora' 'lib32-pango' 'lib32-opus')
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
}