Guest User

Untitled

a guest
Aug 17th, 2018
240
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _basename=gst-plugins-base
  2. pkgbase=lib32-$_basename
  3. pkgname=(lib32-gst-plugins-base-libs lib32-gst-plugins-base)
  4. pkgver=1.14.2
  5. pkgrel=1
  6. pkgdesc="GStreamer Multimedia Framework Base Plugins (32-bit)"
  7. url="https://gstreamer.freedesktop.org/"
  8. arch=(x86_64)
  9. license=(LGPL)
  10. makedepends=(lib32-gstreamer lib32-orc lib32-libxv lib32-alsa-lib
  11.          lib32-cdparanoia lib32-libvisual lib32-libvorbis
  12.              lib32-libtheora lib32-pango lib32-graphene lib32-libpng
  13.          lib32-libjpeg gobject-introspection
  14.          lib32-opus autoconf-archive git)
  15. options=(!emptydirs)
  16. _commit=24f097564657bd630e68931c932ec9fd992a3785    # tags/1.14.2^0
  17. source=("git+https://anongit.freedesktop.org/git/gstreamer/gst-plugins-base#commit=$_commit"
  18.         "gst-common::git+https://anongit.freedesktop.org/git/gstreamer/common")
  19. sha512sums=('SKIP'
  20.             'SKIP')
  21.  
  22. pkgver() {
  23.   cd $_basename
  24.   git describe --tags | sed 's/-/+/g'
  25. }
  26.  
  27. prepare() {
  28.   cd $_basename
  29.  
  30.   git submodule init
  31.   git config --local submodule.common.url "$srcdir/gst-common"
  32.   git submodule update
  33.  
  34.   NOCONFIGURE=1 ./autogen.sh
  35. }
  36.  
  37. build() {
  38.   cd $_basename
  39.  
  40.   export CC='gcc -m32'
  41.   export CXX='g++ -m32'
  42.   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  43.  
  44.   ./configure \
  45.     --prefix=/usr \
  46.     --sysconfdir=/etc \
  47.     --localstatedir=/var \
  48.     --with-package-name="GStreamer Base Plugins (Arch Linux)" \
  49.     --with-package-origin="https://www.archlinux.org/" \
  50.     --enable-experimental \
  51.     --disable-static \
  52.     --disable-examples \
  53.     --disable-gtk-doc-html \
  54.     --build=i686-pc-linux-gnu \
  55.     --libexecdir=/usr/lib32 \
  56.     --libdir=/usr/lib32 \
  57.     --host=i686-linux-gnu
  58.   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  59.   make
  60. }
  61.  
  62. check() {
  63.   cd $_basename
  64.   make check || :
  65. }
  66.  
  67. package_lib32-gst-plugins-base-libs() {
  68.   pkgdesc="GStreamer Multimedia Framework Base Plugin libraries (32-bit)"
  69.   depends=(lib32-gstreamer lib32-orc lib32-libxv)
  70.  
  71.   cd $_basename
  72.   make DESTDIR="${pkgdir}" install
  73.   make -C ext DESTDIR="${pkgdir}" uninstall
  74.  
  75.   rm -Rf ${pkgdir}/usr/share
  76.   rm -Rf ${pkgdir}/usr/include
  77.   rm -Rf ${pkgdir}/usr/bin
  78. }
  79.  
  80. package_lib32-gst-plugins-base() {
  81.   depends=("lib32-gst-plugins-base-libs=$pkgver" lib32-alsa-lib lib32-cdparanoia lib32-libvisual lib32-libvorbis
  82.            lib32-libtheora lib32-pango lib32-opus)
  83.  
  84.   cd $_basename
  85.   make -C gst-libs DESTDIR="${pkgdir}" install
  86.   make -C ext DESTDIR="${pkgdir}" install
  87.   make -C gst-libs DESTDIR="${pkgdir}" uninstall
  88.  
  89.   # Seems to be no build flag to turn this crap off, soo...
  90.   rm -Rf ${pkgdir}/usr/share
  91.   rm -Rf ${pkgdir}/usr/include
  92.   rm -Rf ${pkgdir}/usr/bin
  93. }
RAW Paste Data