[arch-commits] Commit in rustscan/repos (3 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Tue Jun 14 02:15:52 UTC 2022
Date: Tuesday, June 14, 2022 @ 02:15:51
Author: grawlinson
Revision: 1237838
archrelease: copy trunk to community-x86_64
Added:
rustscan/repos/community-x86_64/
rustscan/repos/community-x86_64/PKGBUILD
(from rev 1237837, rustscan/trunk/PKGBUILD)
rustscan/repos/community-x86_64/update-lockfile.patch
(from rev 1237837, rustscan/trunk/update-lockfile.patch)
-----------------------+
PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
update-lockfile.patch | 11 +++++++++
2 files changed, 68 insertions(+)
Copied: rustscan/repos/community-x86_64/PKGBUILD (from rev 1237837, rustscan/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-06-14 02:15:51 UTC (rev 1237838)
@@ -0,0 +1,57 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Gobidev <adrian[dot]groh[at]t-online[dot]de>
+# Contributor: Hao Long <aur at esd.cc>
+
+pkgname=rustscan
+pkgver=2.1.0
+pkgrel=2
+pkgdesc='A modern port scanner'
+arch=('x86_64')
+url='https://github.com/rustscan/RustScan'
+license=('GPL3')
+depends=('gcc-libs' 'nmap')
+makedepends=('git' 'rust')
+checkdepends=('python')
+options=('!lto')
+_commit='075025113d849303af8366ada88da2edcd8a24c0'
+source=(
+ "$pkgname::git+$url#commit=$_commit"
+ 'update-lockfile.patch'
+)
+b2sums=('SKIP'
+ 'bede006174ed64bb1f2dcfb1ea4fc9e8b676af176c25299415a99e107581103c04f1ec08363bdd8106129ad694fb8f0b3be9d0e216222b57e44de5166f519b83')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # update out-of-sync lockfile
+ patch -p1 -i ../update-lockfile.patch
+
+ # download dependencies
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname"
+
+ cargo build --frozen --release --all-features
+}
+
+check() {
+ cd "$pkgname"
+
+ cargo test --frozen --all-features
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" target/release/rustscan
+}
Copied: rustscan/repos/community-x86_64/update-lockfile.patch (from rev 1237837, rustscan/trunk/update-lockfile.patch)
===================================================================
--- community-x86_64/update-lockfile.patch (rev 0)
+++ community-x86_64/update-lockfile.patch 2022-06-14 02:15:51 UTC (rev 1237838)
@@ -0,0 +1,11 @@
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -1110,7 +1110,7 @@
+
+ [[package]]
+ name = "rustscan"
+-version = "2.0.0"
++version = "2.1.0"
+ dependencies = [
+ "ansi_term",
+ "anyhow",
More information about the arch-commits
mailing list