diff options
author | Ilaï Deutel | 2020-01-23 20:26:37 -0800 |
---|---|---|
committer | Ilaï Deutel | 2020-01-23 20:26:37 -0800 |
commit | 5cdb8083b9ce397f63b5bfe57384253e2e8c55dc (patch) | |
tree | d061714329e85e69fa48c5741c2fccb3b7a36013 | |
download | aur-5cdb8083b9ce397f63b5bfe57384253e2e8c55dc.tar.gz |
Initial upload: cargo-lock 4.0.1-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..87dbb633ac35 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cargo-lock + pkgdesc = Cargo subcommand to analyze Cargo.toml packages and translate Cargo.lock files + pkgver = 4.0.1 + pkgrel = 1 + url = https://github.com/RustSec/cargo-lock + arch = x86_64 + license = MIT + license = APACHE + makedepends = cargo + depends = gcc-libs + source = https://github.com/RustSec/cargo-lock/archive/v4.0.1/cargo-lock-4.0.1.tar.gz + sha256sums = 7fd41181d03027207581ccd3496ae99241b44e284b9e1aec6a32cd10b2fd0762 + +pkgname = cargo-lock + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79dcbc5b5ac7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Ilaï Deutel + +pkgname=cargo-lock +pkgver=4.0.1 +pkgrel=1 +pkgdesc="Cargo subcommand to analyze Cargo.toml packages and translate Cargo.lock files" +url="https://github.com/RustSec/cargo-lock" +depends=('gcc-libs') +makedepends=('cargo') +arch=('x86_64') +license=('MIT' 'APACHE') +source=("https://github.com/RustSec/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('7fd41181d03027207581ccd3496ae99241b44e284b9e1aec6a32cd10b2fd0762') + +build() { + cd "${pkgname}-${pkgver}" + cargo build --release --locked --all-features +} + +check() { + cd "${pkgname}-${pkgver}" + cargo test --release --locked +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin" + install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |