72 lines
1.2 KiB
Plaintext
72 lines
1.2 KiB
Plaintext
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
pkgbase=pango
|
|
pkgname=(
|
|
pango
|
|
pango-docs
|
|
)
|
|
pkgver=1.52.0
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc="A library for layout and rendering of text"
|
|
url="https://www.pango.org/"
|
|
arch=(x86_64)
|
|
license=(LGPL-2.1-or-later)
|
|
depends=(
|
|
cairo
|
|
fribidi
|
|
harfbuzz
|
|
libthai
|
|
libxft
|
|
)
|
|
makedepends=(
|
|
gi-docgen
|
|
git
|
|
gobject-introspection
|
|
help2man
|
|
meson
|
|
)
|
|
_commit=fed7be510f58ed848f23f653f3fba45f44eb3b9c # tags/1.52.0^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/pango.git#commit=$_commit")
|
|
b2sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd pango
|
|
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd pango
|
|
}
|
|
|
|
build() {
|
|
local meson_options=(
|
|
-D gtk_doc=true
|
|
)
|
|
|
|
arch-meson pango build "${meson_options[@]}"
|
|
meson compile -C build
|
|
}
|
|
|
|
# not running checks: validation breaks when deps
|
|
# (especially harfbuzz) don't match upstream CI
|
|
|
|
package_pango() {
|
|
provides=(libpango{,cairo,ft2,xft}-1.0.so)
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
mkdir -p doc/usr/share
|
|
mv {"$pkgdir",doc}/usr/share/doc
|
|
}
|
|
|
|
package_pango-docs() {
|
|
pkgdesc+=" (documentation)"
|
|
depends=()
|
|
|
|
mv doc/* "$pkgdir"
|
|
}
|
|
|
|
# vim:set sw=2 sts=-1 et:
|