updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / gdal-docs / PKGBUILD
blob269adbb7de66697e46698cc25dca591cfa756470
1 # Contributor: Alexander 'hatred' Drozdov <hatred@inbox.ru>
3 pkgname=gdal-docs
4 _pkgname=gdal
5 pkgver=1.7.2
6 pkgrel=2
7 pkgdesc="Man pages and documentation for GDAL library"
8 arch=('any')
9 url="http://www.gdal.org/"
10 license=('custom:gdal')
11 depends=('gdal')
12 makedepends=('cfitsio' 'doxygen')
13 changelog=ChangeLog
14 options=('!libtool' '!makeflags')
15 source=(http://download.osgeo.org/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
16 md5sums=('05351f8cb61761ae579667e24a297fe6')
18 build() {
19   cd ${srcdir}/$_pkgname-$pkgver
21   ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 \
22               --with-geotiff --with-mysql --with-python --without-libtool --with-curl
24   make docs
25   (cat Doxyfile ; \
26    echo "ENABLED_SECTIONS=man"; \
27    echo "INPUT=apps swig/python/scripts"; \
28    echo "FILE_PATTERNS=*.cpp *.dox"; \
29    echo "GENERATE_HTML=NO"; \
30    echo "GENERATE_MAN=YES") | doxygen -
31   make DESTDIR=${pkgdir} install-docs install-man
33   mv     ${pkgdir}/usr/doc            ${pkgdir}/usr/share/
34   mv     ${pkgdir}/usr/share/gdal/man ${pkgdir}/usr/share/
35   rm -rf ${pkgdir}/usr/share/gdal