Date: Tuesday, March 21, 2023 @ 12:08:42
Author: alerque
Revision: 1424823
archrelease: copy trunk to community-staging-x86_64
Added:
gfold/repos/community-staging-x86_64/
gfold/repos/community-staging-x86_64/PKGBUILD
(from rev 1424822, gfold/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: gfold/repos/community-staging-x86_64/PKGBUILD (from rev 1424822,
gfold/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-03-21 12:08:42 UTC (rev 1424823)
@@ -0,0 +1,39 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+# Maintainer: Caleb Maclennan <[email protected]>
+
+pkgname=gfold
+_commit='1663c3247b9835fb497afc407e99bdd00e379024'
+pkgver=4.3.2
+pkgrel=2
+pkgdesc="A CLI tool to help keep track of Git repositories"
+arch=('x86_64')
+url="https://github.com/nickgerace/gfold"
+license=('Apache')
+depends=('libgit2')
+makedepends=('cargo' 'git')
+source=("$pkgname::git+$url.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cd "$pkgname"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname"
+ CFLAGS+=" -ffat-lto-objects"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$pkgname"
+ cargo test --frozen
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
+
+# vim: ts=2 sw=2 et: