[arch-commits] Commit in fx/repos (community-x86_64 community-x86_64/PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Apr 20 08:24:11 UTC 2022
Date: Wednesday, April 20, 2022 @ 08:24:11
Author: alerque
Revision: 1187125
archrelease: copy trunk to community-x86_64
Added:
fx/repos/community-x86_64/
fx/repos/community-x86_64/PKGBUILD
(from rev 1187124, fx/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: fx/repos/community-x86_64/PKGBUILD (from rev 1187124, fx/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-04-20 08:24:11 UTC (rev 1187125)
@@ -0,0 +1,37 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Caltlgin Stsodaat <contact at fossdaily.xyz>
+
+pkgname=fx
+pkgver=21.0.0
+pkgrel=2
+pkgdesc='Command-line tool and terminal JSON viewer'
+arch=(x86_64)
+url="https://github.com/antonmedv/$pkgname"
+license=(MIT)
+depends=(glibc)
+makedepends=(go)
+_archive="$pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('cd3a34b9072e0aafd0fb362daf7400d7e1fad9ae326c85302191e9179e6be749')
+
+prepare() {
+ cd "$_archive"
+ go mod vendor
+}
+
+build() {
+ cd "$_archive"
+ export CGO_CPPFLAGS="$CPPFLAGS"
+ export CGO_CFLAGS="$CFLAGS"
+ export CGO_CXXFLAGS="$CXXFLAGS"
+ export CGO_LDFLAGS="$LDFLAGS"
+ export GOFLAGS="-buildmode=pie -trimpath -modcacherw -ldflags=-linkmode=external"
+ go build .
+}
+
+package() {
+ cd "$_archive"
+ install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
+ install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
More information about the arch-commits
mailing list