2021-08-01 03:44:35 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=bacon
|
2021-10-03 20:41:37 +00:00
|
|
|
pkgver=1.2.1
|
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-10-03 20:41:37 +00:00
|
|
|
sha512sums=('3ae8c3dd05a035811f3a97f880e900b256ea7c3c742bcea392541deae7c294421bec9f847605af4e08f8d358191f1fd4bdc298a34c1cb133dd50477955fa84f1')
|
|
|
|
b2sums=('266dc4e7774292314d268a9278377b53cf048593c23be3689a6bb77a264757bddc87d06c5e054f27fd946f45596a35efcaaa7b24a53ae9c45a57dfc9e0d66ee5')
|
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
|
|
|
|
}
|