aboutsummaryrefslogtreecommitdiffstats
path: root/cbindgen/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'cbindgen/PKGBUILD')
-rw-r--r--cbindgen/PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/cbindgen/PKGBUILD b/cbindgen/PKGBUILD
new file mode 100644
index 0000000..7c91015
--- /dev/null
+++ b/cbindgen/PKGBUILD
@@ -0,0 +1,23 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=cbindgen
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="Cbindgen can be used to generate C bindings for Rust code."
+arch=('x86_64')
+url="https://github.com/eqrion/cbindgen/"
+license=('BSD')
+depends=('rustc')
+source=("https://github.com/eqrion/cbindgen/archive/v0.8.0/cbindgen-0.8.0.tar.gz")
+sha256sums=('3a83c8981d195ea8c72cbcd65713fc909c64c613554d3aa52733d3f32b9b244d')
+
+build() {
+ cd "$pkgname"-"$pkgver"
+ cargo build --release
+}
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ install -d $pkgdir/usr/bin/
+ install -Dm755 target/release/cbindgen $pkgdir/usr/bin/
+}