summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0ffd0d3a02f22bcae8892a8fc137e68b9ed1f4c (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
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=espanso-gui
_app_id=io.unobserved.espansoGUI
pkgver=24.7
pkgrel=1
pkgdesc="GUI frontend for espanso"
arch=('x86_64')
url="https://github.com/unobserved-io/espanso-gui"
license=('GPL-3.0-or-later')
depends=('espanso' 'hicolor-icon-theme')
makedepends=('cargo' 'meson')
checkdepends=('appstream')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('041646c7af49163dbfc9377a41ce8836e0c3191a9f5ee68cba2a7f26282aec07')

prepare() {
  cd "$pkgname-$pkgver"
  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
  export RUSTUP_TOOLCHAIN=stable
  arch-meson "$pkgname-$pkgver" build
  meson compile -C build
}

check() {
  cd "$pkgname-$pkgver"
  appstreamcli validate --no-net "assets/linux/${_app_id}.appdata.xml"
  desktop-file-validate "assets/linux/${_app_id}.desktop"
}

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