aboutsummaryrefslogtreecommitdiffstats
path: root/main/pango/APKBUILD
blob: 24db6b7bab2e034adbddf7f74ed4a1dabdb8fee1 (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
50
51
52
53
54
55
56
57
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pango
pkgver=1.44.7
pkgrel=2
pkgdesc="A library for layout and rendering of text"
options="!check" # Some tests fail
url="https://www.pango.org/"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="pango-tools=$pkgver-r$pkgrel"
makedepends="meson cairo-dev expat-dev gobject-introspection-dev help2man
	fontconfig-dev glib-dev harfbuzz-dev libxft-dev fribidi-dev"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/lib/pango/*/modules"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://download.gnome.org/sources/pango/${pkgver%.*}/pango-$pkgver.tar.xz
	fix-include-hb.patch
	"

# secfixes:
#   1.44.1-r0:
#     - CVE-2019-1010238

build() {
	cd "$srcdir"/$pkgname-$pkgver
	meson  \
		--prefix=/usr \
		--buildtype=plain \
		-Dintrospection=true \
		-Dgtk_doc=false \
		build
	ninja -C build
}

check() {
	cd "$builddir"
	ninja -C build test
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	mkdir -p "$pkgdir"/etc/pango
	DESTDIR="$pkgdir" ninja -C build install

	rm -rf "$pkgdir"/usr/share/installed-tests
	rm -rf "$pkgdir"/usr/libexec/installed-tests
}

tools() {
	pkgdesc="$pkgdesc (tools)"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin
}

sha512sums="6e0a3d5cd32c209fd71a2ce5f705a60db318c2133bcca07360a047a73892f642a1661c1f0fb90353fc43e75336dfc22909bf4969f1bd03324c9689344af08350  pango-1.44.7.tar.xz
0db43f91c7da15cb90d6e5bea18a4cf3f2afe7c11979eff60ce61e84a287f404114d4250cb03bdc48323af84ec2c578f3a7ee830d1d965f203d5e1979f6360fa  fix-include-hb.patch"