2021-08-01 03:44:35 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=bacon
|
2021-11-27 07:18:09 +00:00
|
|
|
pkgver=1.2.4
|
2021-08-01 03:44:35 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A background rust code checker"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/Canop/bacon"
|
|
|
|
license=('AGPL3')
|
2021-10-03 20:41:37 +00:00
|
|
|
depends=('gcc-libs')
|
|
|
|
makedepends=('rust')
|
2021-08-01 03:44:35 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
|
2021-11-27 07:18:09 +00:00
|
|
|
sha512sums=('be24dc8654771590f04e19bf5a5cc00ed1efa09d5a9d21803f5814126ad3c42438194df6c94637001c54e7007062cb6ec3987bab93345ca55e36d2c66d7004b4')
|
|
|
|
b2sums=('91c7a0adecb289a1bc866e3e430f7a102d1d68e2a074caea0baf518f89839f9e448d39beab151f8a4f815a933b0ba8dc846600437c21c01104f45210b884c4bb')
|
2021-08-01 03:44:35 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
2021-10-03 20:41:37 +00:00
|
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
2021-08-01 03:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
2021-10-03 20:41:37 +00:00
|
|
|
cargo build --frozen --release --all-features
|
2021-08-01 03:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
|
|
|
# binary
|
|
|
|
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
|
|
|
|
|
|
|
|
# documentation
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
|
|
|
|
}
|