summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bbeb7effbc56777f87989c7bc4324ff00792af3 (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
# Maintainer: minus <minus@mnus.de>
pkgname=libpaseto
pkgver=1.0
pkgrel=1
pkgdesc="C implementation of PASETO (v2 tokens only)"
arch=('x86_64')
url="https://github.com/authenticvision/libpaseto"
license=('MIT')
depends=('libsodium')
makedepends=('cmake')
source=("https://github.com/authenticvision/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('a0a2e830fb4d4116b4ffc78a72d96c8f9dff42aa226bb02681a0f4495069286a')

build() {
	cd "$pkgname-$pkgver"
	cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
	make -C build
}

check() {
	cd "$pkgname-$pkgver"
	build/pasetotest
}

package() {
	cd "$pkgname-$pkgver"
	make -C build DESTDIR="$pkgdir/" install
}