updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libavg / PKGBUILD
blobadf19dc838066df07ff78e1ff2a4505ca3df8fa6
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Alexander Baldeck <alexander@archlinux.org>
4 pkgname=libavg
5 pkgver=1.7.0
6 pkgrel=1
7 pkgdesc='High-level multimedia platform with a focus on interactive art installations.'
8 arch=('i686' 'x86_64')
9 url='http://www.libavg.de'
10 depends=('librsvg' 'gdk-pixbuf2' 'libxml2' 'ffmpeg' 'boost-libs' 'python2' 'pango')
11 optdepends=('libxi' 'libvdpau' 'libdc1394' )
12 makedepends=(python2)
13 license=('LGPL')
14 source=("http://www.libavg.de/raw-attachment/wiki/DownLoad/libavg-${pkgver}.tar.gz")
15 md5sums=('f88a7978748bb07502c6c050b444be04')
17 build() {
18   cd ${pkgname}-${pkgver}
20   # workaround for linking errors, caused by "-Wl,--as-needed" in /etc/makepkg.conf
21   unset LDFLAGS
23   # fix python2
24   find -type f -exec sed -e 's_#!/usr/bin/python_&2_' -e 's_#!/usr/bin/env python_&2_' -i {} \;
26   ./bootstrap
28   PYTHON=/usr/bin/python2 ./configure \
29     --prefix=/usr
31   make
34 package() {
35   cd ${pkgname}-${pkgver}
37   make DESTDIR=${pkgdir} install
39   install -D -m644 ${srcdir}/${pkgname}-${pkgver}/src/avgrc \
40     ${pkgdir}/etc/avgrc