blob: 58dc8cd0d1cacf8875bacad7a698e1ad28f27f9c (
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
|
# Maintainer: Christian Franke <nobody@nowhere.ws>
pkgname=rtrlib
pkgver=0.6.3
pkgrel=0
pkgdesc="An open-source C implementation of the RPKI/Router Protocol client"
url="https://github.com/rtrlib/rtrlib"
arch="all"
license="MIT"
makedepends="cmake cmocka-dev doxygen graphviz libssh-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/rtrlib/rtrlib/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS}
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="0dea41716f261b9538f366a02002afe5fd8f04f555bc4266c04a4290499c76c61a38b70e730911c5ac796ddff2ee73d56357f2c5917040e9a4f0892aee3028d2 rtrlib-0.6.3.tar.gz"
|