archrelease: copy trunk to community-any
[ArchLinux/community.git] / cargo-ndk / trunk / PKGBUILD
blob91180f857b0e3b117fcda2c29b476044bc28415b
1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
3 pkgname=cargo-ndk
4 pkgver=3.1.2
5 pkgrel=1
6 pkgdesc="Compile Rust projects against the Android NDK without hassle"
7 arch=('x86_64')
8 url="https://github.com/bbqsrc/cargo-ndk"
9 license=('MIT' 'Apache')
10 depends=('gcc-libs')
11 makedepends=('cargo')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
13 sha256sums=('9a3f4af9cc01c49290169ff68e480260f7664298317a1ec8ae3af7ffbbbade4e')
15 prepare() {
16   cd "$pkgname-$pkgver"
17   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
20 build() {
21   cd "$pkgname-$pkgver"
22   cargo build --release --frozen
25 check() {
26   cd "$pkgname-$pkgver"
27   cargo test --frozen
30 package() {
31   cd "$pkgname-$pkgver"
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: