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>
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||||
|
|
||||||
pkgname=cargo-geiger
|
pkgname=cargo-geiger
|
||||||
pkgver=0.11.1
|
pkgver=0.11.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Detects usage of unsafe Rust in a Rust crate and its dependencies"
|
pkgdesc="Detects usage of unsafe Rust in a Rust crate and its dependencies"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/rust-secure-code/cargo-geiger"
|
url="https://github.com/rust-secure-code/cargo-geiger"
|
||||||
license=('Apache' 'MIT')
|
license=('Apache' 'MIT')
|
||||||
depends=('curl')
|
depends=('curl')
|
||||||
makedepends=('rust')
|
makedepends=('git' 'rust')
|
||||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver.tar.gz")
|
options=('!lto')
|
||||||
b2sums=('01117f80b72de3cf145bb549cd6a5775b99c3ef37aad4972aa842d03decd68a7bd7ed1a32358070fb6836d64da1fe011a232c7ba46c91f0dbf7b0847681ebb97')
|
_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() {
|
prepare() {
|
||||||
# remove redundant pkgname
|
cd "$pkgname"
|
||||||
mv "$pkgname-$pkgname-$pkgver" "$pkgname-$pkgver"
|
|
||||||
|
|
||||||
# download dependencies
|
# download dependencies
|
||||||
cd "$pkgname-$pkgver"
|
|
||||||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname"
|
||||||
cargo build --release --frozen
|
cargo build --release --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname"
|
||||||
cargo test --frozen
|
cargo test --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname"
|
||||||
|
|
||||||
# binary
|
# binary
|
||||||
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
|
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
|
||||||
|
|
Loading…
Reference in a new issue