summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f36f4bd5156c0f4d30860ec748245282bc9b5d57 (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
_name=escambo
pkgname=$_name-git
pkgver=0.1.2.r199.434e58f
pkgrel=1
pkgdesc="HTTP-based APIs test application"
arch=(any)
url="https://github.com/CleoMenezesJr/escambo"
license=(GPL3)
depends=(gtksourceview5 libadwaita python-gobject python-requests)
makedepends=(blueprint-compiler meson git)
checkdepends=(appstream-glib)
provides=($_name)
conflicts=($_name)
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
    cd $_name
    _ver=$(grep ' version:' meson.build | cut -d\' -f2)
    printf "${_ver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd $_name
}

build() {
  arch-meson $_name build
  meson compile -C build
}

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

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