updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / dawn / PKGBUILD
blob7ef851bd6d6079cd0d8a513ff6da6aa0281de639
1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/dawn/dawn-3.88a.ebuild,v 1.7 2009/05/05 19:45:23 fauli Exp $
5 pkgname=dawn
6 pkgver=3_88a
7 pkgrel=1
8 pkgdesc="3D geometrical postscript renderer"
9 url="http://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html"
10 license="public-domain"
11 arch=(i686 x86_64)
13 depend=(tk libx11 tcsh texlive-core)
15 source=("http://geant4.kek.jp/~tanaka/src/${pkgname}_$pkgver.taz" dawn-3.88a-no-interactive.patch)
18 build () {
19         cd $srcdir/${pkgname}_${pkgver}
20         
21         ###打补丁及预处理
22         patch -Np0 -i ../dawn-3.88a-no-interactive.patch
23         sed -i -e '/strip/d' Makefile*in || die "sed Makefile failed"
24         
25         ###开始编译
26         make clean && make guiclean
27         ./configure
28         
29         echo "Compiling"
30         make
31         
32         ####安装部分
33         INSTALLDIR=/usr/bin
34         [ -d $pkgdir$INSTALLDIR ] || mkdir -p $pkgdir$INSTALLDIR
35         make DESTDIR=$pkgdir install || die "make install failed"
36                 
37         DOCDIR=/usr/share/doc/dawn
38         [ -d $pkgdir$DOCDIR ] || mkdir -p $pkgdir$DOCDIR
39         
40         pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed"
41         cp DOC/*.pdf   $pkgdir$DOCDIR/
42         cp DOC/*.html  $pkgdir$DOCDIR/