rmpkg: bacon

This commit is contained in:
George Rawlinson 2022-03-19 09:21:36 +13:00
parent 8b0aa48280
commit 4631f9c74f
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -1,43 +0,0 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=bacon
pkgver=2.0.1
pkgrel=1
pkgdesc="A background rust code checker"
arch=('x86_64')
url="https://dystroy.org/bacon"
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//'
}
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
}