blob: 385fa71b52918019f9e789140553ac3a116884f6 (
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
40
41
42
43
44
45
46
47
48
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=l8w8jwt-git
pkgver=2.2.1.r0.g824bb52
pkgrel=1
pkgdesc="Minimal, OpenSSL-less and super lightweight JWT library written in C."
arch=('any')
url="https://github.com/GlitchedPolygons/l8w8jwt"
license=('Apache-2.0')
provides=(${pkgname%-git}
ed25519)
conflicts=(${pkgname%-git})
depends=()
makedepends=(git
cmake
ninja)
backup=()
options=('!strip')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}/"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${pkgname}/"
git submodule update --init --recursive
}
build() {
cd "${srcdir}/${pkgname}/"
cmake -DCMAKE_BUILD_TYPE=None \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
-DUSE_STATIC_MBEDTLS_LIBRARY=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-B build \
-G Ninja
ninja -C build
}
package() {
cd "${srcdir}/${pkgname}/"
DESTDIR="${pkgdir}" ninja -C build install
}
|