aboutsummaryrefslogtreecommitdiffstats
path: root/main/doxygen/APKBUILD
blob: 2ffec34b06efcf294700e9d163b33fa53d951556 (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.10
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 python cmake"
subpackages=""
source="http://ftp.stack.nl/pub/users/dimitri/doxygen-$pkgver.src.tar.gz
	doxygen-1.8.10-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="79767ccd986f12a0f949015efb5f058f  doxygen-1.8.10.src.tar.gz
4ca5c58a2e2c8ca77c236735f858ac7e  doxygen-1.8.10-install.patch"
sha256sums="cedf78f6d213226464784ecb999b54515c97eab8a2f9b82514292f837cf88b93  doxygen-1.8.10.src.tar.gz
52e064730e5f975fef6cc1c1ceadec2b66ff85eeb49525f8406bd33397b5d4b5  doxygen-1.8.10-install.patch"
sha512sums="a7f29b5f7b9f55b7e5382b7b7dc7212247a27869bc265433c0ee51480645b3f5f0732d1f5aefd54952204c8a1c98b96ec1ecc22c1ff7a072db5b2356b5981074  doxygen-1.8.10.src.tar.gz
213ab982d64f6eafa7bd8237cd5cb13a17f8e6f3490982dae3ccd93025804f38bf24b9409f4247c3286ca158335de85f7b2c5325e2e92fcff7502c07f895445d  doxygen-1.8.10-install.patch"