summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53c630d27404f4a423343ed9087ce5c739821eec (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
#-*- mode: sh; -*-

# Maintainer: Bart Libert <bart dot libert at gmail dot com>
# Contributor: Tad Fisher <tadfisher at gmail dot com>
pkgname=jasmine-gjs-git
pkgver=2.6.4.r0.g286b772
pkgrel=1
pkgdesc='Run Jasmine specs for GJS code'
arch=('any')
url='https://github.com/ptomato/jasmine-gjs'
license=('MIT')
depends=('gjs')
makedepends=('git' 'meson')
provides=("jasmine")
conflicts=("jasmine-gjs")
source=("$pkgname::git+https://github.com/ptomato/jasmine-gjs.git")
sha256sums=('SKIP')

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

build() {
    arch-meson "$srcdir/$pkgname" _build
    meson compile -C _build
}

package() {
    DESTDIR="$pkgdir/" meson install -C _build
    install -Dm644 "$srcdir/$pkgname/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}