2021-08-01 03:44:35 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=bacon
|
2021-10-18 20:41:18 +00:00
|
|
|
pkgver=1.2.2
|
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-18 20:41:18 +00:00
|
|
|
sha512sums=('e43bbe28b09222c66efb922a3f4ae08b1eac26d4d7cb961927e6e2a161c6587fda02ffad3d87666a06d6c58ddb5b243df35eb9fa5b34df662563c106a98b69a9')
|
|
|
|
b2sums=('e5d4b8bc72e1a1ee81cd1fd60ed61f9bb02c54136e27b005d10c35dddb1d0348a158c3bddcddbc5a4898abe5cb1e61cd0965fe696b77608d728f6623f017f370')
|
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
|
|
|
|
}
|