summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e98238eddf1e2ac15704abea998759f1a88d13a (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
pkgname=gjs-dev
_pkgname=gjs
pkgver=1.63.91
pkgrel=1
epoch=2
pkgdesc="Javascript Bindings for GNOME"
url="https://gitlab.gnome.org/GNOME/gjs/blob/master/doc/Home.md"
arch=(x86_64)
license=(GPL)
depends=('cairo' 'gobject-introspection-runtime' 'js68' 'dconf')
makedepends=('gobject-introspection' 'git' 'autoconf-archive' 'sysprof' 'meson')
checkdepends=('valgrind' 'xorg-server-xvfb')
provides=('gjs')
conflicts=('gjs')
source=("git+https://gitlab.gnome.org/GNOME/gjs.git")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --abbrev=0
}

build() {
  cd $_pkgname
  git checkout tags/$pkgver
  cd ..
  arch-meson $_pkgname build
  ninja -C build
}

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

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