aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-doc-utils/APKBUILD
blob: f8d5ef61f336958c3e282e04302ee7c811714f71 (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
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-doc-utils
pkgver=0.20.10
pkgrel=6
pkgdesc="Documentation utilities for Gnome"
url="https://www.gnome.org/"
arch="noarch"
license="GPL-2.0-or-later LGPL-2.1-or-later"
depends="python3 docbook-xml rarian py3-libxml2 libxslt"
makedepends="libxslt-dev libxml2-dev perl-xml-parser rarian-dev
	gettext-dev intltool"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-doc-utils/${pkgver%.*}/gnome-doc-utils-$pkgver.tar.xz
	python3.patch
	"


prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-scrollkeeper \
		--enable-build-utils
	make
	sed -i s/python$/python3/g xml2po/xml2po/xml2po
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="1cb5e3b9ca9e45e6c551801e9c9c4aac725c2ce85238c230a4c70b36c90419886b921d8dd464df0643fc3bbb877df075abaa83a36d1609c5664960c31e11d151  gnome-doc-utils-0.20.10.tar.xz
bc0093b589f8a6d2ef5cd83d4ca5cfe86281b0196963cb6d8dee0c54f915af1b5d05c64f62585f9360deb53cd60a313575db5eca976f4bc548a4e28535612c1d  python3.patch"