summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c528da6dded789a573b124f3a17ad28dd32d2fcc (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>

pkgname=eloquent
pkgver=1.1
pkgrel=2
pkgdesc="Your proofreading assistant"
arch=(any)
url="https://github.com/sonnyp/Eloquent"
license=(GPL-3.0-only)
depends=(gjs libadwaita languagetool fasttext fasttext-langid-models)
makedepends=(gobject-introspection blueprint-compiler git meson)
checkdepends=(appstream-glib)
source=("git+https://github.com/sonnyp/Eloquent.git#tag=v$pkgver"
        "git+https://github.com/sonnyp/troll.git#commit=53155a0" # submodule commit for this tag so far
        "0001-Adjust-paths-and-commands-for-nonflatpak-environment.patch")
b2sums=('72f0288cad0878590e6015f0e8c14cfc0f841b570d042501bd48d5f284aafbc05a97ad8c2a7618c40d7fa348fa1de20a5407fbe5661114b6138088aae711d717'
        '4321bc52b2fa758a55e8f49bd14b58b1ba13b2f67f7dcdfec453e5b8ae6fc946fb61b3efe3790e3c7531b056116a1118d22d360e0a04fb90b0017fce58457d84'
        'ccc768cac6298d72a308599063f6ee71584bf58c40a1b152ba632fa5f7dff0c812b5710ae15e60a0b3437fdf7bfa2f1c51cc130759c8bcb5e4d24bac19bfb1a4')

prepare() {
  cd Eloquent
  git submodule init
  git config submodule.troll.url "$srcdir/troll"
  git -c protocol.file.allow=always submodule update

  git apply ../0001-Adjust-paths-and-commands-for-nonflatpak-environment.patch
}

build() {
  arch-meson Eloquent build
  meson compile -C build
}

# https://github.com/sonnyp/Eloquent/issues/13
check() {
  meson test -C build --print-errorlogs || :
}

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