blob: 691a2e6271c88a06b161031504f29f5431e6fab4 (
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
51
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
pkgname=bite
pkgver=0.3
pkgrel=1
pkgdesc="Disassembler focused on comprehensive rust support"
url="https://github.com/WINSDK/bite"
arch=(x86_64)
license=(MIT)
depends=(
gcc-libs
glibc
)
makedepends=(cargo)
options=(!lto)
source=("$pkgname-$pkgver.tar.gz::$url/archive/V$pkgver.tar.gz")
sha256sums=('601b8de971300983d30dccf0925cd067e355061201d2d7fb2bd56063b1987669')
_archive="$pkgname-$pkgver"
prepare() {
cd "$_archive"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_archive"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$_archive"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$_archive"
install -Dm755 -t "$pkgdir/usr/bin" target/release/bite
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|