updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / povray-beta / PKGBUILD
blob44a68be66193768e8424e1c57d13c5ff1ce5ffab
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=povray-beta
3 pkgver=3.7.0.RC3
4 pkgrel=1
5 pkgdesc="A script based raytracer for high-quality three-dimensional graphics"
6 arch=('i686' 'x86_64')
7 url="http://povray.org/"
8 license=('custom')
9 depends=('boost-libs' 'libpng' 'libtiff' 'sdl')
10 makedepends=('boost' 'openexr')
11 provides=('povray')
12 conflicts=('povray')
13 backup=('etc/povray/3.7/povray.conf' 'etc/povray/3.7/povray.ini')
14 source=(http://www.povray.org/beta/source/povray-$pkgver.tar.bz2 \
15         no_user_install.diff \
16         NOTICE)
17 md5sums=('66480f1ca6b1b1b5198605b6caf3f8e8'
18          '487d7bf4d99952b18f84188fd6483ad1'
19          'd496f86ba83747a7caa363be8c5631eb')
21 build() {
22   cd "$srcdir"/povray-$pkgver
24   sed -i 's|/usr/local|/usr|' vfe/unix/unixoptions.h
25   patch -Np1 < "$srcdir"/no_user_install.diff || true
27   [ "$PACKAGER" ] && COMPILED="$PACKAGER" || COMPILED="John Doe"
28   ./configure COMPILED_BY="$COMPILED" --prefix=/usr --sysconfdir=/etc \
29     --with-openexr=/usr/
31   make
34 package() {
35   cd "$srcdir"/povray-$pkgver
37   make DESTDIR="$pkgdir" install
39   install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
40 #  install -m644 doc/povlegal.doc "$pkgdir"/usr/share/licenses/$pkgname/
41 #  install -m644 doc/source-license.txt "$pkgdir"/usr/share/licenses/$pkgname/
42 #  install -m644 doc/distribution-license.txt "$pkgdir"/usr/share/licenses/$pkgname/
43   install -m644 "$srcdir"/NOTICE "$pkgdir"/usr/share/licenses/$pkgname/
46 # vim:set ts=2 sw=2 et: