blob: 11d74789b4dedf1bacc99744a7ff2197619ca9e4 (
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
|
# Maintainer: Constantine Fedotov <zenflak@gmail.com>
# Contributor: Thomas Eizinger <thomas@eizinger.io>
# All Thomas PKGBUILDs are managed at https://github.com/thomaseizinger/pkgbuilds
_gitname=dylint
pkgname=cargo-dylint
pkgver=2.1.1
pkgrel=0
pkgdesc="A tool for running Rust lints from dynamic libraries"
arch=('x86_64')
url="https://github.com/trailofbits/${_gitname}"
license=('MIT')
makedepends=('rust')
source=("https://github.com/trailofbits/${_gitname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e5aa738e4c099ffac872f3a45e3be6bf22403c0db981dc5c0ae25cf7109820f7')
build() {
cd "$srcdir/${_gitname}-${pkgver}"
cargo build --package ${pkgname} --release --target-dir=./target
}
package() {
install -Dm755 "$srcdir/${_gitname}-${pkgver}/target/release/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
}
|