1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
6 pkgdesc="Compile Rust projects against the Android NDK without hassle"
8 url="https://github.com/bbqsrc/cargo-ndk"
9 license=('MIT' 'Apache')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
13 sha256sums=('9a3f4af9cc01c49290169ff68e480260f7664298317a1ec8ae3af7ffbbbade4e')
17 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
22 cargo build --release --frozen
32 install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
33 install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
34 install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
37 # vim:set ts=2 sw=2 et: