Mail archive
alpine-aports

[alpine-aports] [PATCH 1/3] testing/cbindgen: New aport

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Fri, 28 Dec 2018 09:00:15 +0100

A tool for generating C bindings to Rust code
https://github.com/eqrion/cbindge

This is a build dependency for firefox
---
 testing/cbindgen/APKBUILD | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 testing/cbindgen/APKBUILD
diff --git a/testing/cbindgen/APKBUILD b/testing/cbindgen/APKBUILD
new file mode 100644
index 0000000000..1db696b678
--- /dev/null
+++ b/testing/cbindgen/APKBUILD
_at_@ -0,0 +1,35 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
+pkgname=cbindgen
+pkgver=0.6.7
+pkgrel=0
+pkgdesc="A tool for generating C bindings to Rust code"
+url="https://github.com/eqrion/cbindgen"
+# limited by rust and cargo
+arch="x86_64"
+license="MPL2"
+depends=""
+subpackages="$pkgname-doc"
+makedepends="cargo"
+
+install=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/eqrion/$pkgname/archive/v$pkgver.tar.gz"
+
+builddir="${srcdir}/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	cargo build --release
+}
+
+check() {
+	cd "$builddir"
+	cargo test --release
+}
+
+package() {
+	cd "$builddir"
+	install -Dt "$pkgdir/usr/bin" target/release/cbindgen
+	install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md
+}
+
+sha512sums="e14a1a2106892bc1983b1144ccaa766cb9b81894de871e9adfd7e3e3d477767eb9b8ed18c953d88fb64473bb3ab23d5eae4ace0b2d61e499585ee946d103b094  cbindgen-0.6.7.tar.gz"
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Dec 28 2018 - 09:00:15 UTC