-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
54 lines (44 loc) · 1.55 KB
/
PKGBUILD
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
# Maintainer: Richard Klemm < [email protected]>
# Previous Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: Alexander Baldeck <[email protected]>
# Contributor: padfoot <[email protected]>
pkgname=libavg
pkgver=1.8.2
pkgrel=0
pkgdesc='High-level multimedia platform with a focus on interactive art installations.'
arch=('i686' 'x86_64')
url='http://www.libavg.de'
depends=('libtool' 'librsvg' 'libxi' 'gdk-pixbuf2' 'libxml2' 'ffmpeg' 'boost' 'boost-libs' 'python2' 'pango')
install=$pkgname.install
backup=('etc/profile.d/libavg.sh' 'etc/profile.d/libavg.csh')
optdepends=('libvdpau' 'libdc1394' )
makedepends=(python2)
license=('LGPL')
source=("https://github.com/libavg/libavg/archive/v${pkgver}.tar.gz"
$pkgname.sh
$pkgname.csh
)
md5sums=('4f9d8511cb2c778a9800de0626c45c99'
'dc87612b5def50777621de5513694824'
'6224961a395c77e5bfe2b008ddda024f'
)
build() {
cd ${pkgname}-${pkgver}
# workaround for linking errors, caused by "-Wl,--as-needed" in /etc/makepkg.conf
unset LDFLAGS
# fix python2
find -type f -exec sed -e 's_#!/usr/bin/python_&2_' -e 's_#!/usr/bin/env python_&2_' -i {} \;
./bootstrap
PYTHON=/usr/bin/python2 ./configure \
--prefix=/usr
make ${MAKEFLAGS}
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -D -m644 ${srcdir}/${pkgname}-${pkgver}/src/avgrc \
${pkgdir}/etc/avgrc
cd "$pkgdir"
install -Dm755 "$srcdir/$pkgname.sh" etc/profile.d/$pkgname.sh
install -Dm755 "$srcdir/$pkgname.csh" etc/profile.d/$pkgname.csh
}