upgpkg: cargo-geiger 0.11.2-1
* New upstream release. * Switch source to git from github tarball.
This commit is contained in:
parent
c0235bc1c4
commit
04b8801e42
1 changed files with 15 additions and 10 deletions
|
@ -1,38 +1,43 @@
|
|||
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||
|
||||
pkgname=cargo-geiger
|
||||
pkgver=0.11.1
|
||||
pkgver=0.11.2
|
||||
pkgrel=1
|
||||
pkgdesc="Detects usage of unsafe Rust in a Rust crate and its dependencies"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/rust-secure-code/cargo-geiger"
|
||||
license=('Apache' 'MIT')
|
||||
depends=('curl')
|
||||
makedepends=('rust')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver.tar.gz")
|
||||
b2sums=('01117f80b72de3cf145bb549cd6a5775b99c3ef37aad4972aa842d03decd68a7bd7ed1a32358070fb6836d64da1fe011a232c7ba46c91f0dbf7b0847681ebb97')
|
||||
makedepends=('git' 'rust')
|
||||
options=('!lto')
|
||||
_commit='33f939738299c8da9247e60adab8a008da145b88'
|
||||
source=("$pkgname::git+$url.git#commit=$_commit")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
git describe --tags | sed "s/(cargo-geiger-serde\|cargo-geiger\|geiger)//;s/-//"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
# remove redundant pkgname
|
||||
mv "$pkgname-$pkgname-$pkgver" "$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
|
||||
# download dependencies
|
||||
cd "$pkgname-$pkgver"
|
||||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
cargo build --release --frozen
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
|
||||
# binary
|
||||
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
|
||||
|
|
Loading…
Reference in a new issue