34 lines
1,010 B
Bash
34 lines
1,010 B
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
pkgname=bacon
|
|
pkgver=1.2.2
|
|
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=('e43bbe28b09222c66efb922a3f4ae08b1eac26d4d7cb961927e6e2a161c6587fda02ffad3d87666a06d6c58ddb5b243df35eb9fa5b34df662563c106a98b69a9')
|
|
b2sums=('e5d4b8bc72e1a1ee81cd1fd60ed61f9bb02c54136e27b005d10c35dddb1d0348a158c3bddcddbc5a4898abe5cb1e61cd0965fe696b77608d728f6623f017f370')
|
|
|
|
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
|
|
}
|