[arch-commits] Commit in bacon/repos (community-x86_64 community-x86_64/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Fri Mar 18 20:25:10 UTC 2022


    Date: Friday, March 18, 2022 @ 20:25:09
  Author: grawlinson
Revision: 1159081

archrelease: copy trunk to community-x86_64

Added:
  bacon/repos/community-x86_64/
  bacon/repos/community-x86_64/PKGBUILD
    (from rev 1159080, bacon/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: bacon/repos/community-x86_64/PKGBUILD (from rev 1159080, bacon/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-03-18 20:25:09 UTC (rev 1159081)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Jokler <aur at jokler.xyz>
+
+pkgname=bacon
+pkgver=2.0.1
+pkgrel=2
+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
+}
+
+check() {
+  cd "$pkgname"
+
+  cargo test --frozen --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
+}



More information about the arch-commits mailing list