diff options
author | Thomas Eizinger | 2021-07-26 16:24:27 +1000 |
---|---|---|
committer | Thomas Eizinger | 2021-07-26 16:27:22 +1000 |
commit | feb5a9c25144d2ec261c68957875b49084de73ad (patch) | |
tree | 40b453185a5017ef92236781bf44adba75e004a3 | |
download | aur-feb5a9c25144d2ec261c68957875b49084de73ad.tar.gz |
Initial upload: dylint-link 1.0.1-0
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2e0dc650cbfd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = dylint-link + pkgdesc = A wrapper around Rust's default linker to help create Dylint libraries + pkgver = 1.0.1 + pkgrel = 0 + url = https://github.com/trailofbits/dylint + arch = x86_64 + license = MIT + makedepends = rust + source = https://github.com/trailofbits/dylint/archive/refs/tags/v1.0.1.tar.gz + sha256sums = c50a7a300ba1bc100060bd7c9d42b24ba54d8ad1930c4198ab77b6fdffce8ee4 + +pkgname = dylint-link diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..68f0e7991634 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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.1 +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=('c50a7a300ba1bc100060bd7c9d42b24ba54d8ad1930c4198ab77b6fdffce8ee4') + +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}" +} |