updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / cortex / PKGBUILD
blob1070eb98fb8ea0ba55c0d99df108d5786fb70cf1
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=cortex
4 pkgver=5.22.0
5 pkgrel=1
6 pkgdesc="A set of high quality C++ libraries and Python modules tailored for software development in the visual effects industry."
7 arch=(i686 x86_64)
8 url="http://cortex-vfx.googlecode.com/"
9 license=('custom')
10 depends=('freetype2' 'openexr' 'libtiff' 'boost-libs' 'python2')
11 makedepends=('scons')
12 conflicts=('cortex-git')
13 source=("${url}files/$pkgname-$pkgver.tar.gz")
14 md5sums=('5a39fad97fbba21d749d6891bac038ab')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
19   # Python2 fixes
20   export PYTHON="python2"
21   sed -i "s|\(env python2\)\..*|\1|" {scripts/do,config/ie/releaseAll}
23   # A lot of scons configuration fixes
24   sed -i \
25         "s|/local||g;s|\(boost\)-1_34_1|\1|; \
26         s|-\${BOOST.*VERSION}||;838,852d; \
27         s|_thread|&-mt|;s|bin/python|&2|; \
28         s|\(python\)\(-config\)|\12\2|g; \
29         s|X/ops|X/lib/IECore/ops|" \
30         SConstruct
32   scons
35 package() {
36   cd "$srcdir/$pkgname-$pkgver"
38   scons INSTALL_PREFIX="$pkgdir/usr" install
40   # Install License file
41   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"