# Maintainer: Natanael Copa pkgname=doxygen pkgver=1.8.12 pkgrel=0 pkgdesc="A documentation system for C++, C, Java, IDL and PHP" url="http://www.doxygen.org/" arch="all" license="GPL" depends="" makedepends="flex bison coreutils perl python2 cmake" subpackages="" source="http://ftp.stack.nl/pub/users/dimitri/doxygen-$pkgver.src.tar.gz doxygen-1.8.11-install.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" cmake .\ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -Dbuild_xmlparser=ON \ -DMAN_INSTALL_DIR=/usr/share/man/man1 \ -DDOC_INSTALL_DIR=/usr/share/doc/doxygen \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="08e0f7850c4d22cb5188da226b209a96 doxygen-1.8.12.src.tar.gz 4a5ab90c93759cc8d5165f693bd72b4e doxygen-1.8.11-install.patch" sha256sums="792d4091cbdf228549ff2033dd71ff7ea5029c6b436317cc5ec866e71302df6c doxygen-1.8.12.src.tar.gz fc92dc3ccfc361d170ddfd35bc61c7f861417a9ae6bcdc5cd5568cffdfe1dc07 doxygen-1.8.11-install.patch" sha512sums="12fb5f19d0de382c7510b7c517d7c781a1e6e11720c7d9ecfd81d29d5ed030984e8d55ffcc25cc52703020e880edad341136e2795a2a36a842fc275b31ae203d doxygen-1.8.12.src.tar.gz 78214c5e626855e12de9680187441a4857ecbceb077d7fc1aa0ddc285887ed9b0a26ac321fb91a320115ef85eb568440652cbe36ee9453156ad4a21d9761b148 doxygen-1.8.11-install.patch"