summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4399be40eee334dacc50bf608394b12ec0af0094 (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
57
58
59
60
61
62
63
64
65
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Vincent Grande <shoober420@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgbase=pango-git
pkgname=(pango-git pango-docs-git)
pkgver=1.54.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
  fontconfig
  freetype2
  fribidi
  glib2
  glibc
  harfbuzz
  libsysprof-capture
  libthai
  libx11
  libxft
  libxrender
)
makedepends=(gobject-introspection help2man git meson gi-docgen glib2-devel)
source=("git+https://gitlab.gnome.org/GNOME/pango.git")
sha256sums=('SKIP')

pkgver() {
  cd pango
  git describe --tags | sed 's/-/.r/;s/-/./g'
}

build() {
  local meson_options=(
    -D documentation=true
    -D sysprof=enabled
  )
  arch-meson pango build "${meson_options[@]}"
  meson compile -C build
}

# Not running checks according to official PKGBUILD

package_pango-git() {
  provides=(pango libpango{,cairo,ft2,xft}-1.0.so)
  conflicts=(pango)

  meson install -C build --destdir "$pkgdir"

  mkdir -p doc/usr/share
  mv {"$pkgdir",doc}/usr/share/doc
}

package_pango-docs-git() {
  pkgdesc+=" (documentation)"
  provides=(pango-docs)
  conflicts=(pango-docs)
  depends=()

  mv doc/* "$pkgdir"
}