Compare commits
2 commits
f8faa17a05
...
7342d219b8
Author | SHA1 | Date | |
---|---|---|---|
George Rawlinson | 7342d219b8 | ||
George Rawlinson | 09013485e5 |
|
@ -47,6 +47,12 @@ prefix = "r"
|
|||
|
||||
# github
|
||||
|
||||
[bacon]
|
||||
source = "github"
|
||||
github = "Canop/bacon"
|
||||
use_max_tag = true
|
||||
prefix = "v"
|
||||
|
||||
[git-test]
|
||||
source = "github"
|
||||
github = "spotify/git-test"
|
||||
|
|
32
bacon/PKGBUILD
Normal file
32
bacon/PKGBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||
|
||||
pkgname=bacon
|
||||
pkgver=1.1.8
|
||||
pkgrel=1
|
||||
pkgdesc="A background rust code checker"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/Canop/bacon"
|
||||
license=('AGPL3')
|
||||
makedepends=('cargo')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
|
||||
b2sums=('04c7405508befadf9c6ddeb26c5de82ebb5489f9a98d0947a7a68d379f393b2d3e37c3e5a36274139bed12e65fed4d2024f6f1af229726193ead520f0d72c8d2')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cargo fetch --locked
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
RUSTUP_TOOLCHAIN=stable cargo build --release --locked --all-features --target-dir=target --offline
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
# binary
|
||||
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
|
||||
|
||||
# documentation
|
||||
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
|
||||
}
|
Loading…
Reference in a new issue