aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libxml++/APKBUILD
blob: 0c9be67e674c8c0cdd4ff81e9fc9ea769363e452 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libxml++
pkgver=3.2.2
pkgrel=0
pkgdesc="C++ wrapper for the libxml XML parser library"
url="http://libxmlplusplus.sourceforge.net/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="meson libxml2-dev glibmm-dev python3 perl doxygen graphviz"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/libxml++/${pkgver%.[0-9]*}/libxml++-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dbuild-tests=true \
		-Dbuild-examples=false \
		-Dbuild-documentation=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	ln -s libxml++-3.0.pc "$pkgdir"/usr/lib/pkgconfig/libxml++.pc
}

sha512sums="c000d438aae487b92de2a1c60277d5e3ad3bf93824fc8fa99684778ea2334a45bf621f8d253190bdadedc591772d9beee53a98ebc3e20015d2ca68e097c0a253  libxml++-3.2.2.tar.xz"