Guest User

Untitled

a guest
Aug 17th, 2018
356
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=lib32-gstreamer
  2. _pkgbasename=gstreamer
  3. pkgver=1.14.2
  4. pkgrel=1
  5. pkgdesc="GStreamer open-source multimedia framework core library (32-bit)"
  6. url="https://gstreamer.freedesktop.org/"
  7. arch=(x86_64)
  8. license=(LGPL)
  9. depends=(lib32-libxml2 lib32-glib2 lib32-libunwind lib32-libelf gstreamer)
  10. makedepends=(gtk-doc gobject-introspection autoconf-archive git)
  11. _commit=afb3d1b3e0d02da8b0eb5bb501356650b38e5644  # tags/1.14.2^0
  12. source=("git+https://anongit.freedesktop.org/git/gstreamer/gstreamer#commit=$_commit"
  13.         "gst-common::git+https://anongit.freedesktop.org/git/gstreamer/common")
  14. sha512sums=('SKIP'
  15.             'SKIP')
  16.  
  17. pkgver() {
  18.   cd $_pkgbasename
  19.   git describe --tags | sed 's/-/+/g'
  20. }
  21.  
  22. prepare() {
  23.   cd $_pkgbasename
  24.  
  25.   git submodule init
  26.   git config --local submodule.common.url "$srcdir/gst-common"
  27.   git submodule update
  28.  
  29.   NOCONFIGURE=1 ./autogen.sh
  30. }
  31.  
  32. build() {
  33.   cd $_pkgbasename
  34.  
  35.   export CC='gcc -m32'
  36.   export CXX='g++ -m32'
  37.   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  38.  
  39.   ./configure\
  40.     --build=i686-pc-linux-gnu\
  41.     --prefix=/usr\
  42.     --sysconfdir=/etc\
  43.     --localstatedir=/var\
  44.     --libexecdir=/usr/lib32\
  45.     --libdir=/usr/lib32\
  46.     --disable-maintainer-mode\
  47.     --disable-examples\
  48.     --disable-tests\
  49.     --with-package-name="GStreamer (Arch Linux)" \
  50.     --with-package-origin="https://www.archlinux.org/" \
  51.     --disable-static\
  52.     --disable-gtk-doc-html\
  53.     --disable-gtk-doc-pdf\
  54.     --disable-gtk-doc\
  55.     --disable-valgrind\
  56.     --disable-benchmarks
  57.   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  58.   make
  59. }
  60.  
  61. package() {
  62.   cd $_pkgbasename
  63.   make DESTDIR="${pkgdir}" install
  64.  
  65.   rm -R "${pkgdir}"/usr/{share,include}
  66.  
  67.   for _i in "${pkgdir}"/usr/bin/*; do
  68.     mv "${_i}" "${_i}-32"
  69.   done
  70. }
RAW Paste Data