blob: be0b0f767f0733140c14c279c9a60de25402669d (
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
49
|
# Maintainer: Nikos Toutountzoglou <nikos dot toutou at protonmail dot com>
pkgname=libstirshaken
pkgver=1.0.0
pkgrel=1
pkgdesc="STIR-Shaken authentication and verification library"
arch=('x86_64')
url="https://github.com/signalwire/libstirshaken"
license=('MIT')
depends=(
'curl'
'glibc'
'libjwt'
'libks'
'openssl'
)
makedepends=(
'autoconf'
'automake'
'cmake'
'gcc'
'gdb'
'git'
'libtool'
'make'
'pkg-config'
)
source=("git+${url}.git#commit=cb6ede40b3ce12ab76e370186a14dc141839ef07")
sha256sums=('3b4eece0fbfa91c050b825d17053935013e7e72f83503829dd05d7a507793346')
build() {
cd "${srcdir}/${pkgname}"
./bootstrap.sh
./configure --prefix=/usr
# -fcf-protection=full: Enables control-flow protection
# -Wno-deprecated-declarations: Suppresses warnings about deprecated declarations
make CFLAGS+=" -fcf-protection=full -Wno-deprecated-declarations"
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
# Install license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|