summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dcc22d53952b4038c433fb3d96962d4e48192ab5 (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
# Contributor: asm0dey <pavel.finkelshtein+AUR@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: josephgbr <rafael.f.f1@gmail.com>

pkgname=lib32-gstreamer0.10
pkgver=0.10.36.1
pkgrel=4
pkgdesc='GStreamer Multimedia Framework'
arch=('x86_64')
license=('LGPL')
url='http://gstreamer.freedesktop.org/'
depends=('gstreamer0.10' 'lib32-glib2' 'lib32-libxml2')
makedepends=('gcc-multilib' 'git' 'intltool' 'python2' 'flex')
source=('git+https://github.com/GStreamer/gstreamer.git#branch=0.10'
        'git+https://github.com/GStreamer/common.git')
sha256sums=('SKIP'
            'SKIP')

prepare() {
  cd "$srcdir/gstreamer"

  git submodule init
  git config submodule.common.url "$srcdir/common"
  git submodule--helper update

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd "$srcdir/gstreamer"

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

  ./configure \
    --prefix='/usr' \
    --libdir='/usr/lib32' \
    --libexecdir='/usr/lib32' \
    --localstatedir='/var' \
    --sysconfdir='/etc' \
    --with-package-name='GStreamer (Archlinux Multilib)' \
    --with-package-origin='http://www.archlinux.org/' \
    --disable-examples \
    --disable-introspection \
    --disable-static \
    --disable-tests
  make
}

package() {
  cd "$srcdir/gstreamer"

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

# vim: ts=2 sw=2 et: