updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / gmsh-docs / PKGBUILD
bloba3ee6f1809286b0b5e61d75ecd66908732099af9
1 # Maintainer: gborzi <gborzi@ieee.org>
2 # Contributor: mickele <mimocciola@yahoo.com>
3 pkgname=gmsh-docs
4 _pkgname=gmsh
5 pkgver=2.5.0
6 pkgrel=1
7 pkgdesc="TXT, HMTL and PDF doc for Gmsh"
8 arch=('any')
9 url="http://www.geuz.org/gmsh/"
10 license=('GPL2')
11 depends=()
12 makedepends=('cmake' 'coreutils' 'lapack' 'gzip' 'perl' 'texinfo')
13 source=("$url/src/${_pkgname}-${pkgver}-source.tgz")
14 md5sums=('afa48c0296dba08641bc6312b0ccabf5')
16 build(){
17    cd "${srcdir}/${_pkgname}-${pkgver}-source"
19    mkdir -p build
21    cd build
23    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_FLTK=0 -DENABLE_OCC=0 \
24         ..
26    LC_ALL=C make doc
29 package() {
30    cd "${srcdir}/${_pkgname}-${pkgver}-source/build"
32    bsdtar -xf ${_pkgname}-${pkgver}-doc.tgz
34    cd "doc/texinfo"
36    install -D -m644 gmsh.html "${pkgdir}/usr/share/doc/gmsh/gmsh.html"
37    install -D -m644 gmsh.txt "${pkgdir}/usr/share/doc/gmsh/gmsh.txt"
38    install -D -m644 gmsh.pdf "${pkgdir}/usr/share/doc/gmsh/gmsh.pdf"
39    install -D -m644 gmsh.info "${pkgdir}/usr/share/info/gmsh.info"