[arch-commits] Commit in rust-bindgen/repos (2 files)

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


    Date: Friday, October 12, 2018 @ 09:32:28
  Author: felixonmars
Revision: 393209

archrelease: copy trunk to community-x86_64

Added:
  rust-bindgen/repos/community-x86_64/
  rust-bindgen/repos/community-x86_64/PKGBUILD
    (from rev 393208, rust-bindgen/trunk/PKGBUILD)

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

Copied: rust-bindgen/repos/community-x86_64/PKGBUILD (from rev 393208, rust-bindgen/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-10-12 09:32:28 UTC (rev 393209)
@@ -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