aboutsummaryrefslogtreecommitdiffstats
path: root/main/pango/APKBUILD
blob: 8e0d9c7aeb2eff2ab843f24f45f653f68035454b (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
50
51
52
53
54
55
56
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pango
pkgver=1.44.5
pkgrel=0
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=$pkgname-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 \
		-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="f337a87ae519a03e1074b46f096674f40247373f4f463fee4884f368fdd4e3c8f3cace8e1d12acca2db59c1ff973179655289a574f70be08746d99831e7e2486  pango-1.44.5.tar.xz
0db43f91c7da15cb90d6e5bea18a4cf3f2afe7c11979eff60ce61e84a287f404114d4250cb03bdc48323af84ec2c578f3a7ee830d1d965f203d5e1979f6360fa  fix-include-hb.patch"