[arch-commits] Commit in gdu/repos (2 files)

Leonidas Spyropoulos artafinde at gemini.archlinux.org
Fri Jan 14 11:57:04 UTC 2022


    Date: Friday, January 14, 2022 @ 11:57:03
  Author: artafinde
Revision: 1103229

archrelease: copy trunk to community-testing-x86_64

Added:
  gdu/repos/community-testing-x86_64/
  gdu/repos/community-testing-x86_64/PKGBUILD
    (from rev 1103228, gdu/trunk/PKGBUILD)

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

Copied: gdu/repos/community-testing-x86_64/PKGBUILD (from rev 1103228, gdu/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-01-14 11:57:03 UTC (rev 1103229)
@@ -0,0 +1,57 @@
+# Maintainer: Leonidas Spyropoulos <artafinde at archlinux.org>
+# Contributor: Daniel Milde <daniel at milde dot cz>
+
+pkgname=gdu
+pkgver=5.12.1
+pkgrel=1
+license=('MIT')
+pkgdesc="Fast disk usage analyzer"
+depends=('glibc')
+makedepends=('go' 'git')
+arch=('x86_64')
+url="https://github.com/dundee/gdu"
+source=("git+https://github.com/dundee/gdu.git#tag=v${pkgver}?signed")
+sha256sums=(SKIP)
+validpgpkeys=(
+  360B658707A1A44CA57FB67EEF0BA1C4F3990103  # Daniel Milde <daniel at milde.cz>, retrieved from https://github.com/dundee.gpg
+  )
+
+prepare() {
+  cd ${pkgname}
+  mkdir -p dist/
+}
+
+pkgver() {
+  cd ${pkgname}
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd ${pkgname}
+  local _DATE=$(git log -1 --pretty=%ct) # get commit date to make it REPRODUCABLE
+  local _BUILDINFO="-X 'github.com/dundee/gdu/v5/build.Version=${pkgver}' \
+                    -X 'github.com/dundee/gdu/v5/build.User=${PACKAGER}' \
+                    -X 'github.com/dundee/gdu/v5/build.Time=${_DATE}'"
+  go build \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" ${_BUILDINFO}" \
+    -o dist/gdu \
+    github.com/dundee/gdu/v5/cmd/gdu
+}
+
+check() {
+  cd ${pkgname}
+  go test ./...
+}
+
+package() {
+  cd ${pkgname}
+  install -Dm755 dist/$pkgname "${pkgdir}/usr/bin/$pkgname"
+  install -Dm644 gdu.1    "${pkgdir}/usr/share/man/man1/$pkgname.1"
+  install -D -m644 LICENSE.md  "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list