mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
38 lines
898 B
Text
38 lines
898 B
Text
# Contributor: guddaff <guddaff@protonmail.com>
|
|
# Maintainer: guddaff <guddaff@protonmail.com>
|
|
pkgname=rustscan
|
|
pkgver=2.3.0
|
|
pkgrel=0
|
|
pkgdesc="Modern Port Scanner"
|
|
url="https://github.com/RustScan/RustScan"
|
|
license="GPL-3.0-or-later"
|
|
# armhf timout while building
|
|
arch="all !armhf"
|
|
makedepends="cargo cargo-auditable"
|
|
checkdepends="bash perl python3"
|
|
source="https://github.com/RustScan/RustScan/archive/$pkgver/rustscan-$pkgver.tar.gz"
|
|
options="net"
|
|
builddir="$srcdir/RustScan-$pkgver"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 target/release/rustscan -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
6bbc74d7104b62888f310e89393f93ef4f507ef926e14bc065daa4f4fe994e5ef7208e4b8f396dddabf6a720eaff350d80ab29d00b1303d3b854cf661492c790 rustscan-2.3.0.tar.gz
|
|
"
|