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