summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11550484ffbe0b24ebc36c6142f4e5a084965e54 (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
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>

_pkgname=telegraph
pkgname=$_pkgname-git
pkgver=0.1.7.r22.g7efc3b0
pkgrel=1
pkgdesc="Write and decode morse (latest commit)"
url="https://github.com/fkinoshita/Telegraph"
arch=('x86_64' 'aarch64')
license=('GPL3')
depends=('libadwaita')
makedepends=('git' 'meson')
checkdepends=('appstream-glib')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd Telegraph
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
  meson test -C build --print-errorlogs
}

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