1 # Contributor: mickele <mimocciola@yahoo.com>
5 pkgdesc="HTML Documentation of Quarter library"
7 url="http://www.coin3d.org/lib/quarter"
10 makedepends=('make' 'gcc' 'doxygen' 'qt>=4.0' 'coin>=3.0.0' 'sed')
11 conflicts=('quarter-svn-doc')
13 source=(http://ftp.coin3d.org/coin/src/all/Quarter-$pkgver.tar.gz)
19 sed -e "s/#include <Inventor\/SoInteraction.h>/#include <Inventor\/SoInteraction.h>\n#include <cstdio>/" \
20 -i ${srcdir}/Quarter-${pkgver}/src/Quarter/Quarter.cpp
23 ../Quarter-${pkgver}/configure --prefix=/usr --enable-html || return 1
27 make DESTDIR=$startdir/pkg install || return 1
29 # Removes unnecessary dirs
30 rm -rf ${startdir}/pkg/usr/include
31 rm -rf ${startdir}/pkg/usr/lib
33 # Install html-doc in right place
34 install -d ${pkgdir}/usr/share/doc/${_pkgdoc}/html || return 1
35 install -D -m 644 ${pkgdir}/usr/share/Quarter/html/* ${startdir}/pkg/usr/share/doc/${_pkgdoc}/html || return 1
36 # rm -rf ${pkgdir}/usr/share/Quarter
40 install -d ${pkgdir}/usr/share/doc/${_pkgdoc}/examples || return 1
41 # Next line is necessary if user want to launch examples in their original location
42 install -d -m 777 ${pkgdir}/usr/share/doc/${_pkgdoc}/examples/.libs || return 1
43 install -D -m 644 ${srcdir}/Quarter-${pkgver}/src/examples/*.{h,cpp,ui} ${pkgdir}/usr/share/doc/${_pkgdoc}/examples || return 1
44 for _FILE in directui dynamicui examiner inheritui mdi minimal superimposition
46 install -D -m 755 ${srcdir}/build/src/examples/$_FILE ${pkgdir}/usr/share/doc/${_pkgdoc}/examples || return 1
49 md5sums=('73d7c9e1917436e29b128781c997185f')