arch-pkgs/bacon/PKGBUILD
2021-11-27 07:18:09 +00:00

34 lines
1,010 B
Bash

# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=bacon
pkgver=1.2.4
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')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
cargo build --frozen --release --all-features
}
package() {
cd "$pkgname-$pkgver"
# binary
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
}