blob: 39a72cf0941035854cc9c24391369cf5a1025d61 (
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
50
|
pkgname=rudolfs
pkgver=0.3.7
_commit=e64a2142464b6cbdc0f14b5ca19a23470699e9c3
pkgrel=1
pkgdesc="A high-performance, caching Git LFS server with an AWS S3 and local storage back-end."
arch=(x86_64)
url="https://github.com/jasonwhite/rudolfs"
license=(MIT)
makedepends=(
cargo
)
depends=(
gcc-libs
glibc
)
checkdepends=(
git-lfs
)
optdpends=(
'git-lfs: local usage'
)
options=(!lto) # see https://github.com/briansmith/ring/issues/1444 and https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/20#note_171886
source=("git+https://github.com/jasonwhite/rudolfs.git#commit=${_commit}")
sha256sums=('0796c86e4a048478f12e131c0b736cf7acb3cf029808539390a22f45c135e28b')
pkgver() {
cd rudolfs
git describe --tags | sed 's/^v//'
}
prepare() {
cd rudolfs
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's|host: ||p')"
}
check() {
cd rudolfs
export RUSTUP_TOOLCHAIN=stable
cargo test --locked --offline --all-features
}
package() {
cd rudolfs
export RUSTUP_TOOLCHAIN=stable
# TODO: figure out some what to use cargo install without triggering a full rebuild
cargo install --no-track --locked --offline --all-features --target-dir target --root "$pkgdir/usr/" --path .
}
|