main/hello-world-rust: several tweaks (MR 4310)
* Don't use "cargo install", as it leads to building a second time. * Make the build very verbose, as this package is mainly used to debug and develop the crossdirect scripts for rust.
This commit is contained in:
parent
c5571fc688
commit
63c85a7e3c
1 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
||||
pkgname=hello-world-rust
|
||||
pkgver=0.1.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Small test program for (cross) compiling rust"
|
||||
url="https://gitlab.com/ollieparanoid/hello-world-rust/"
|
||||
arch="all"
|
||||
|
@ -12,7 +12,8 @@ source="https://gitlab.com/ollieparanoid/hello-world-rust/-/archive/$pkgver/hell
|
|||
[ "$CARCH" = "riscv64" ] && options="$options textrels"
|
||||
|
||||
build() {
|
||||
cargo build --release --locked
|
||||
export CROSSDIRECT_DEBUG=1
|
||||
cargo build --release --locked --verbose --verbose
|
||||
}
|
||||
|
||||
check() {
|
||||
|
@ -22,8 +23,8 @@ check() {
|
|||
}
|
||||
|
||||
package() {
|
||||
cargo install --path . --root="$pkgdir/usr"
|
||||
rm "$pkgdir"/usr/.crates.toml
|
||||
install -Dm755 target/release/hello_world_rust \
|
||||
-t "$pkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
sha512sums="b755b02529e6ad40a969d5d563bc28be1202c8008661b72335c8c9e6f06bc5f0220fa047f5444b552815df5184c3ab86eb2f6a4f70701962fa0d4bc9a25ab259 hello-world-rust-0.1.1.tar.bz2"
|
||||
|
|
Loading…
Reference in a new issue