summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43c1ac04dca1a99e9b2f9e71acd6a5230adf1127 (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
# Maintainer: Pellegrino Prevete (tallero) <pellegrinoprevete@gmail.com>
# Contributor: Mark Wagie (yochananmarqos) <mark.wagie@proton.me>
# Contributor: Fabio Loli (fabiololix) <fabio.loli@disroot.org>

_pkg="gedit"
_pkgname="lib${_pkg}-gtksourceview"
pkgname="${_pkgname}-git"
pkgver=299.0.3+5+gffb59486
pkgrel=1
_pkgdesc=("A library that extends GtkTextView, the standard GTK "
          "widget for multiline text editing.")
pkgdesc="${_pkgdesc[@]}"
arch=(x86_64)
url="https://${_pkg}-technology.net"
license=(LGPL2.1)
depends=(
  'gtk3'
  'libxml2'
)
makedepends=(
  'git'
  'gobject-introspection'
  'gtk-doc'
  'meson'
)
checkdepends=(
  'xorg-server-xvfb'
)
provides=(
  "${_pkgname}=${pkgver}"
  "${_pkgname}-300.so"
)
conflicts=(
  "${_pkgname}"
)
_repo_url="https://github.com/${_pkg}-technology/${_pkgname}"
source=(
  "${_pkgname}::git+${_repo_url}"
)
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --tags | sed 's/-/+/g'
}

build() {
  arch-meson "${_pkgname}" build
  meson compile -C build
}

check() {
  export NO_AT_BRIDGE=1
  xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
    meson test -C build --print-errorlogs
}

package() {
  meson install -C build --destdir "${pkgdir}"
}

# vim:set sw=2 sts=-1 et: