aboutsummaryrefslogblamecommitdiffstats
path: root/community/cbindgen/APKBUILD
blob: 4667c3cda416ce32cf6661e8b9168987d0f0995e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                             
             
                
             
        

                                                    
                                                                

                   
                                                                                           

         
                                                




                                 
                                               


           
                                                                    

 
                                                                                                                                                                     
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=cbindgen
pkgver=0.14.0
pkgrel=0
pkgdesc="Tool to generate C bindings from Rust code"
url="https://github.com/eqrion/cbindgen"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # Limited by cargo
license="MPL-2.0"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/cbindgen/$pkgver/download"

build() {
	cargo build --release --locked --verbose
}

check() {
	# Failing tests
	rm -rf tests/rust/expand*
	cargo test --release --locked --verbose
}

package() {
	install -Dm0755 target/release/cbindgen -t "$pkgdir"/usr/bin
}

sha512sums="fb8453bc647b2dfec24c2bad03a0508ea940f56f94a529049e33d8d89b468d62404b3d9144f920afbb319e519b024bb3e1e36f9bd37faee8046cedbca3f5531f  cbindgen-0.14.0.tar.gz"