summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b1e68bc42e03cc4912f444be96283d78260e105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Contributor: Maxime Gauduin <alucryd@gmail.com>
# Contributor: josephgbr <rafael.f.f1@gmail.com>

pkgbase=lib32-gstreamer0.10-base
pkgname=('lib32-gstreamer0.10-base' 'lib32-gstreamer0.10-base-plugins')
pkgver=0.10.36
pkgrel=8
arch=('x86_64')
url='http://gstreamer.freedesktop.org/'
license=('LGPL')
makedepends=('lib32-alsa-lib' 'lib32-cdparanoia' 'lib32-gstreamer0.10'
             'lib32-libgl' 'lib32-libtheora' 'lib32-libvisual'
             'lib32-libvorbis' 'lib32-libxv' 'lib32-orc' 'lib32-pango'
             'make-3.81')
options=('!emptydirs')
source=("http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${pkgver}.tar.xz")
sha256sums=('1fe45c3894903001d4d008b0713dab089f53726dcb5842d5b40c2595a984e64a')

build() {
  cd gst-plugins-base-${pkgver}

  export CC='gcc -m32'
  export CXX='g++ -m32'
  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

  ./configure \
    --prefix='/usr' \
    --libdir='/usr/lib32' \
    --localstatedir='/var' \
    --sysconfdir='/etc' \
    --with-package-name='GStreamer Base Plugins (Archlinux Multilib)' \
    --with-package-origin='http://www.archlinux.org/' \
    --enable-experimental \
    --disable-examples \
    --disable-gnome_vfs \
    --disable-introspection \
    --disable-static
  make-3.81
  sed -e 's/^SUBDIRS_EXT =.*/SUBDIRS_EXT =/' -i Makefile
}

package_lib32-gstreamer0.10-base() {
  pkgdesc='GStreamer Multimedia Framework Base plugin libraries'
  depends=('gstreamer0.10-base' 'lib32-gstreamer0.10' 'lib32-orc'
           'lib32-libxv')

  cd gst-plugins-base-${pkgver}

  make-3.81 DESTDIR="${pkgdir}" install
  rm -rf "${pkgdir}"/usr/{bin,include,share}
}

package_lib32-gstreamer0.10-base-plugins() {
  pkgdesc='GStreamer Multimedia Framework Base Plugins (gst-plugins-base)'
  depends=('gstreamer0.10-base-plugins' 'lib32-alsa-lib' 'lib32-cdparanoia'
           'lib32-gstreamer0.10-base' 'lib32-libtheora' 'lib32-libvisual'
           'lib32-libvorbis' 'lib32-pango')

  cd gst-plugins-base-${pkgver}

  make-3.81 -C gst-libs DESTDIR="${pkgdir}" install
  make-3.81 -C ext DESTDIR="${pkgdir}" install
  make-3.81 -C gst-libs DESTDIR="${pkgdir}" uninstall
}

# vim: ts=2 sw=2 et: