summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIlaï Deutel2020-01-23 20:26:37 -0800
committerIlaï Deutel2020-01-23 20:26:37 -0800
commit5cdb8083b9ce397f63b5bfe57384253e2e8c55dc (patch)
treed061714329e85e69fa48c5741c2fccb3b7a36013 /PKGBUILD
downloadaur-cargo-lock.tar.gz
Initial upload: cargo-lock 4.0.1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..79dcbc5b5ac
--- /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}"
+}