aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk-doc/APKBUILD
blob: 9cdf55fbb2f416caf38cd385bd49da042a56bedd (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-doc
pkgver=1.29
pkgrel=0
pkgdesc="Documentation tool for public library API"
url="https://www.gtk.org/gtk-doc/"
arch="noarch"
license="GFDL"
depends="docbook-xsl python3 py3-six pkgconf glib-dev highlight"
makedepends="rarian-dev py-libxml2 gettext autoconf automake libtool"
checkdepends="bc"
source="https://download.gnome.org/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"

# it does not seem to be possible to disable tests of pdf which requires dblatex or fop
# disable checks for now
options="!check"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	autoreconf -vif
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-highlight=highlight
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="97e17be2563c2c12a04394633feaf6591918968a794c38e945a65be9c2de2bed5ce586592a7fe396a1874b8e43e63d6380c6d1a3193ccb7f9bb3d3a331526421  gtk-doc-1.29.tar.xz"