blob: b0534f36850aa85956c753cde81b54b63f7dd91b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
pkgname=ports-sniffer
pkgver=0.1.0
pkgrel=1
epoch=
pkgdesc="A simple port sniffer(scanner) implementation with 🦀"
arch=(x86_64)
url="https://github.com/anas-elgarhy/ports-sniffer"
license=('MIT')
makedepends=(cargo)
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 "$pkgdir/usr/bin/" "target/release/$pkgname"
}
sha256sums=('d24b8248dadb79dbb9f5a0d100cb9e19d813b74a34c7e8a4cb9b0115b4f82412')
|