arch-pkgs/bacon/PKGBUILD
George Rawlinson e9bfad84f1
upgpkg: bacon 1.2.1-1
* New upstream release.
* Refactor PKGBUILD.
2021-10-03 20:41:37 +00:00

34 lines
1,010 B
Bash

# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=bacon
pkgver=1.2.1
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=('3ae8c3dd05a035811f3a97f880e900b256ea7c3c742bcea392541deae7c294421bec9f847605af4e08f8d358191f1fd4bdc298a34c1cb133dd50477955fa84f1')
b2sums=('266dc4e7774292314d268a9278377b53cf048593c23be3689a6bb77a264757bddc87d06c5e054f27fd946f45596a35efcaaa7b24a53ae9c45a57dfc9e0d66ee5')
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
}