blob: 3d84ee1c0fd8d8f02fd0760510c8b49dd7dd04c2 (
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: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=rtrtr-git
pkgver=0.3.0.r1.gf7168af
pkgrel=2
pkgdesc="An RPKI data proxy"
arch=('i686' 'x86_64')
url="https://nlnetlabs.nl/projects/rpki/rtrtr/"
license=('BSD-3-Clause')
depends=('gcc-libs')
makedepends=('git' 'cargo')
provides=("rtrtr=$pkgver")
conflicts=('rtrtr')
source=("git+https://github.com/NLnetLabs/rtrtr.git")
sha256sums=('SKIP')
prepare() {
cd "rtrtr"
if [ ! -f "Cargo.lock" ]; then
cargo update
fi
cargo fetch
}
pkgver() {
cd "rtrtr"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
check() {
cd "rtrtr"
#cargo test \
# --frozen
}
package() {
cd "rtrtr"
cargo install \
--locked \
--no-track \
--root "$pkgdir/usr" \
--path .
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/rtrtr"
}
|