upgpkg: bacon 1.2.5-1

New upstream release.
This commit is contained in:
George Rawlinson 2022-01-29 16:56:54 +00:00
parent f9ce8d947e
commit c9275d4992
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -1,30 +1,39 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=bacon
pkgver=1.2.4
pkgver=1.2.5
pkgrel=1
pkgdesc="A background rust code checker"
arch=('x86_64')
url="https://github.com/Canop/bacon"
license=('AGPL3')
depends=('gcc-libs')
makedepends=('rust')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha512sums=('be24dc8654771590f04e19bf5a5cc00ed1efa09d5a9d21803f5814126ad3c42438194df6c94637001c54e7007062cb6ec3987bab93345ca55e36d2c66d7004b4')
b2sums=('91c7a0adecb289a1bc866e3e430f7a102d1d68e2a074caea0baf518f89839f9e448d39beab151f8a4f815a933b0ba8dc846600437c21c01104f45210b884c4bb')
makedepends=('git' 'rust')
options=('!lto')
_commit='0077701f2923a43d7c37f9e532163bfa01af6b1c'
source=("$pkgname::git+$url.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
prepare() {
cd "$pkgname-$pkgver"
cd "$pkgname"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
cd "$pkgname"
cargo build --frozen --release --all-features
}
package() {
cd "$pkgname-$pkgver"
cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"