[arch-commits] Commit in libslirp-rs/repos (2 files)

Frederik Schwan freswa at archlinux.org
Sat Oct 17 17:05:35 UTC 2020


    Date: Saturday, October 17, 2020 @ 17:05:35
  Author: freswa
Revision: 725503

archrelease: copy trunk to community-x86_64

Added:
  libslirp-rs/repos/community-x86_64/
  libslirp-rs/repos/community-x86_64/PKGBUILD
    (from rev 725502, libslirp-rs/trunk/PKGBUILD)

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

Copied: libslirp-rs/repos/community-x86_64/PKGBUILD (from rev 725502, libslirp-rs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-10-17 17:05:35 UTC (rev 725503)
@@ -0,0 +1,25 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: loqs
+
+pkgname=rust-libslirp
+pkgver=4.2.2
+pkgrel=1
+pkgdesc='High-level bindings & helper process for libslirp.'
+url='https://gitlab.freedesktop.org/slirp/libslirp-rs'
+arch=('x86_64')
+license=('MIT')
+depends=('dbus' 'libslirp')
+makedepends=('cargo')
+source=("${pkgname}-${pkgver}.tar.gz::https://crates.io/api/v1/crates/libslirp/${pkgver}/download")
+b2sums=('890f0758d6315f6b00fc06be86ec449aa92bfe6af38d05f92396cbaec46bd4307618164556ebf5e009b4012ecc7a72d6df5e22a5bb88f00b9433efdeaa50ab18')
+
+build() {
+  cd ${pkgname#rust-}-${pkgver}
+  cargo build --release --locked --all-features --target-dir=target
+}
+
+package() {
+  cd ${pkgname#rust-}-${pkgver}
+  install -Dm755 "target/release/libslirp-helper" "${pkgdir}"/usr/bin/slirp-helper
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list