[arch-commits] Commit in ctop/repos (2 files)
Frederik Schwan
freswa at gemini.archlinux.org
Wed Apr 27 14:44:06 UTC 2022
Date: Wednesday, April 27, 2022 @ 14:44:06
Author: freswa
Revision: 1191166
archrelease: copy trunk to community-staging-x86_64
Added:
ctop/repos/community-staging-x86_64/
ctop/repos/community-staging-x86_64/PKGBUILD
(from rev 1191165, ctop/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: ctop/repos/community-staging-x86_64/PKGBUILD (from rev 1191165, ctop/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-04-27 14:44:06 UTC (rev 1191166)
@@ -0,0 +1,30 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+
+pkgname=ctop
+pkgver=0.7.7
+pkgrel=2
+pkgdesc='Top-like interface for container metrics'
+arch=('x86_64')
+url='https://ctop.sh/'
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bcicen/ctop/archive/refs/tags/v${pkgver}.tar.gz")
+b2sums=('21bcc7a7996cf8cd1bfb87da30bbccd3f1c9a257b1140a81795186c466c7e499233e691eca3dac2e953fb9e46d0cacd78ee87abcbfd01965401d3666f3ff8eff')
+
+
+build() {
+ cd ${pkgname}-${pkgver}
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ go build .
+}
+
+package() {
+ install -Dm755 ${pkgname}-${pkgver}/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
+ install -Dm644 ${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
More information about the arch-commits
mailing list