blob: a2749dbbd781189a989d30f1f1da484132785e3f (
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
|
# Maintainer: Thomas Eizinger <thomas@eizinger.io>
# All my PKGBUILDs are managed at https://github.com/thomaseizinger/pkgbuilds
_gitname=dylint
pkgname=dylint-link
pkgver=1.0.3
pkgrel=0
pkgdesc="A wrapper around Rust's default linker to help create Dylint 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=('46bd07eb4975713bd9004ead592e139a62f1fa6b6b9b46999e2695c20278feb3')
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}"
}
|