blob: 7955cfd0055baf5cc43165200b1ca40354039f43 (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pango
pkgver=1.42.4
pkgrel=1
pkgdesc="A library for layout and rendering of text"
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 freetype-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/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
disable-test-layout.patch
"
build() {
cd "$srcdir"/$pkgname-$pkgver
meson \
--prefix=/usr \
-Dgir=true \
-Denable_docs=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="993e97f647eba0c5ed90bcfcb8228bf67fa3f20b1f4331e4e40a30788d7c3ac55eee1209471bf21df125cb8fc6121acc8062a9da2f8a7d6cbe8e9ad13a9320dc pango-1.42.4.tar.xz
e3d819bb29b3b6fc849a1e6b6413c21dd89386d54ddf44d6598c28aa773d075b550def4a93a5f9d3eec5775369162cae6f0061c1e1c22590f07aa29b644f5027 disable-test-layout.patch"
|