aboutsummaryrefslogtreecommitdiffstats
path: root/main/doxygen/APKBUILD
blob: 32e957f81abcb3b167edc72d391cd0c4742dce42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=doxygen
pkgver=1.8.13
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="0fa414975f8cd6d30e126c28327c1f7c  doxygen-1.8.13.src.tar.gz
4a5ab90c93759cc8d5165f693bd72b4e  doxygen-1.8.11-install.patch"
sha256sums="af667887bd7a87dc0dbf9ac8d86c96b552dfb8ca9c790ed1cbffaa6131573f6b  doxygen-1.8.13.src.tar.gz
fc92dc3ccfc361d170ddfd35bc61c7f861417a9ae6bcdc5cd5568cffdfe1dc07  doxygen-1.8.11-install.patch"
sha512sums="85da5bd28ad9f33a8e50fa92796817d31e59c024127cb647cb967e4321dd51378feaacdf099d578b7e6020fd646a3c63e99c77420e49e3894fc18ca89ba3e0a2  doxygen-1.8.13.src.tar.gz
78214c5e626855e12de9680187441a4857ecbceb077d7fc1aa0ddc285887ed9b0a26ac321fb91a320115ef85eb568440652cbe36ee9453156ad4a21d9761b148  doxygen-1.8.11-install.patch"