[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 12 09:32:08 UTC 2018


    Date: Friday, October 12, 2018 @ 09:32:07
  Author: felixonmars
Revision: 393208

addpkg: rust-bindgen 0.42.2-1

Added:
  rust-bindgen/
  rust-bindgen/repos/
  rust-bindgen/trunk/
  rust-bindgen/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Added: rust-bindgen/trunk/PKGBUILD
===================================================================
--- rust-bindgen/trunk/PKGBUILD	                        (rev 0)
+++ rust-bindgen/trunk/PKGBUILD	2018-10-12 09:32:07 UTC (rev 393208)
@@ -0,0 +1,25 @@
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rust-bindgen
+pkgver=0.42.2
+pkgrel=1
+pkgdesc='Automatically generates Rust FFI bindings to C (and some C++) libraries'
+url='https://github.com/rust-lang-nursery/rust-bindgen'
+depends=()
+makedepends=('rust')
+arch=('x86_64')
+license=('BSD')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/rust-lang-nursery/rust-bindgen/archive/v$pkgver.tar.gz")
+sha512sums=('483eb20ca97718dd204cf60b6b3145b6444295ae3cd0c6f6974e1b361be07dd0aee280fc46b4fc6e74dbc757dfa8c6477d199b7b3058f3c4ebdedbe766d1d894')
+
+build() {
+  cd $pkgname-$pkgver
+  cargo build --release
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm755 target/release/bindgen "$pkgdir"/usr/bin/bindgen
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list