[arch-commits] Commit in (gfold gfold/repos gfold/trunk gfold/trunk/PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Thu Jan 6 16:46:21 UTC 2022
Date: Thursday, January 6, 2022 @ 16:46:20
Author: orhun
Revision: 1094740
addpkg: gfold 3.0.0-1
Added:
gfold/
gfold/repos/
gfold/trunk/
gfold/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Added: gfold/trunk/PKGBUILD
===================================================================
--- gfold/trunk/PKGBUILD (rev 0)
+++ gfold/trunk/PKGBUILD 2022-01-06 16:46:20 UTC (rev 1094740)
@@ -0,0 +1,36 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+pkgname=gfold
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="A CLI tool to help keep track of Git repositories"
+arch=('x86_64')
+url="https://github.com/nickgerace/gfold"
+license=('Apache')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('1d8ebce84a5fc4caeb125f33057c98a9ad2752c92dd92925ee624a7613af77a97d03511fec154ea83c5f935a051ad6b4136ef5e65513f159485ee5d592c3d11b')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --frozen
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ 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:
More information about the arch-commits
mailing list