-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAPKBUILD
More file actions
50 lines (41 loc) · 1.05 KB
/
APKBUILD
File metadata and controls
50 lines (41 loc) · 1.05 KB
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
# Maintainer: Sam Day <me@samcday.com>
pkgname=fastboop
pkgver=0.0.1_rc8_git
pkgrel=0
pkgdesc="Ephemeral Linux boot tool for USB-enabled pocket computers"
url=https://github.com/samcday/fastboop
arch="x86_64 aarch64"
license="GPL-3.0-only"
makedepends="
cargo
clang-dev
libusb-dev
linux-headers
pkgconf
rust"
_gitrev=main
source="https://github.com/samcday/fastboop/archive/$_gitrev/fastboop-$_gitrev.tar.gz"
builddir="$srcdir/fastboop-${_gitrev#v}"
options="net"
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$builddir=/build/"
_cargo_target_arg=
_cargo_target_dir="target"
if [ -n "$CTARGET" ]; then
_cargo_target_arg="--target=$CTARGET"
_cargo_target_dir="target/$CTARGET"
fi
prepare() {
default_prepare
cargo fetch --locked $_cargo_target_arg
}
build() {
cargo build --release --locked --frozen -p fastboop-cli $_cargo_target_arg
}
check() {
cargo test --workspace --locked --frozen $_cargo_target_arg
}
package() {
local target_dir="$_cargo_target_dir/release"
install -Dm755 "$target_dir"/fastboop "$pkgdir"/usr/bin/fastboop
}
sha512sums=""