diff options
author | Li Q <li66@21cn.com> | 2019-07-13 15:26:52 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-13 15:32:38 -0300 |
commit | 8cc8f674a19c1bbbdbcb9e4ccaba9581faafa273 (patch) | |
tree | 01faec0475a132a2da36a1b48c37d2499f8a0361 /community/cbindgen | |
parent | 2adcfb5699a20e30d16fc74386e360526d8100ad (diff) | |
download | aports-8cc8f674a19c1bbbdbcb9e4ccaba9581faafa273.tar.bz2 aports-8cc8f674a19c1bbbdbcb9e4ccaba9581faafa273.tar.xz |
community/cbindgen: move from testing
Diffstat (limited to 'community/cbindgen')
-rw-r--r-- | community/cbindgen/APKBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/cbindgen/APKBUILD b/community/cbindgen/APKBUILD new file mode 100644 index 0000000000..73088e9657 --- /dev/null +++ b/community/cbindgen/APKBUILD @@ -0,0 +1,28 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=cbindgen +pkgver=0.9.0 +pkgrel=0 +pkgdesc="Tool to generate C bindings from Rust code" +url="https://github.com/eqrion/cbindgen" +arch="x86_64" # Limited by cargo +license="MPL-2.0" +makedepends="cargo" +source="$pkgname-$pkgver.tar.gz::https://github.com/eqrion/cbindgen/archive/v${pkgver}.tar.gz" + +build() { + cargo build --release --verbose +} + +check() { + # Failing tests + rm -rf tests/rust/expand* + cargo test --release --verbose +} + +package() { + cargo install --path . --root="$pkgdir"/usr + rm "$pkgdir"/usr/.crates.toml +} + +sha512sums="d66e702e903eace6b888ee76e3f1581972f45f3e8ec25e989186b50862e1479902d18f04a3783a7617ce5d6e4091186dc8d30929c667d691338c1e9d43f27821 cbindgen-0.9.0.tar.gz" |