summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55a16f7696ebd5828d7da664076e0cd98fae4f13 (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: Jonas Witschel <diabonas@archlinux.org>
pkgname=jose-git
pkgver=10.r8.028eab5
pkgrel=1
pkgdesc='C-language implementation of Javascript Object Signing and Encryption'
arch=('x86_64')
url='https://github.com/latchset/jose'
license=('APACHE')
depends=('jansson' 'openssl' 'zlib')
makedepends=('git' 'meson')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
sha512sums=('SKIP')

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

build() {
	cd "${pkgname%-git}"
	meson --prefix=/usr --buildtype=plain build
	ninja -C build
}

check() {
	cd "${pkgname%-git}"
	ninja -C build test
}

package() {
	cd "${pkgname%-git}"
	DESTDIR="$pkgdir" ninja -C build install
}