arch-pkgs/bacon/PKGBUILD

44 lines
833 B
Bash
Raw Normal View History

2021-08-01 03:44:35 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=bacon
pkgver=2.0.1
2021-08-01 03:44:35 +00:00
pkgrel=1
pkgdesc="A background rust code checker"
arch=('x86_64')
url="https://dystroy.org/bacon"
2021-08-01 03:44:35 +00:00
license=('AGPL3')
depends=('gcc-libs')
makedepends=('git' 'rust')
options=('!lto')
_commit='06149aa5f174cb646f5d43a1c2127162e3c619a6'
source=("$pkgname::git+https://github.com/Canop/bacon.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
2021-08-01 03:44:35 +00:00
prepare() {
cd "$pkgname"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
2021-08-01 03:44:35 +00:00
}
build() {
cd "$pkgname"
cargo build --frozen --release --all-features
2021-08-01 03:44:35 +00:00
}
package() {
cd "$pkgname"
2021-08-01 03:44:35 +00:00
# binary
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
}