diff options
author | Daniel Peukert | 2024-02-24 17:24:06 +0100 |
---|---|---|
committer | Daniel Peukert | 2024-02-24 17:24:06 +0100 |
commit | 2a18f503867eaa0e16d3d0aefdffb6320b55c46c (patch) | |
tree | e7ee7d57f1621c6a02a9cebbe96efaeab29c18f0 | |
parent | 2089ee02b53e48604b684570244a3c182ef57a79 (diff) | |
download | aur-2a18f503867eaa0e16d3d0aefdffb6320b55c46c.tar.gz |
Improve orbterm arch logic
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -29,14 +29,7 @@ prepare() { mv "$srcdir/$pkgname-$pkgver-Cargo.lock" 'Cargo.lock' mv "$srcdir/$pkgname-$pkgver-Cargo.toml" 'Cargo.toml' - # Prepare correct target for our architecture - _cargotarget="$CARCH-unknown-linux-gnu" - - if [ "$CARCH" = 'armv7h' ]; then - _cargotarget='armv7-unknown-linux-gnueabihf' - fi - - cargo fetch --locked --target "$_cargotarget" + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { @@ -46,6 +39,8 @@ build() { cargo build --frozen --release --all-features } +# No functionality to test, as the binary has no --help or --version + package() { cd "$srcdir/$_sourcedirectory/" install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" |