summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22766df9cc94eaeb23decd653c591733f1deb730 (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
# Maintainer: Thomas Krug <t.krug@elektronenpumpe.de>
# Contributor: Thomas Krug <t.krug@elektronenpumpe.de>

pkgname=libspelling-git
_pkgname=libspelling
provides=(libspelling)
conflicts=(libspelling)
pkgver=r29.8a8b31b
pkgrel=1
pkgdesc="Spellcheck library for GTK4"
url="https://gitlab.gnome.org/chergert/libspelling/"
arch=(x86_64)
license=(LGPL)
depends=(
gtk4
enchant
gtksourceview5
)
makedepends=(
  autoconf-archive
  git
  gtk-doc
  gobject-introspection
  gi-docgen
  vala
)
_commit=HEAD
source=("git+https://gitlab.gnome.org/chergert/libspelling.git#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir"
  rm -rf build
  mkdir build
  meson setup --prefix=/usr --buildtype=plain "$_pkgname" build -Ddocs=false
  meson compile -C build
}

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

# vim:set ts=2 sw=2 et: