[arch-commits] Commit in duf/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Sat Jan 8 11:04:56 UTC 2022


    Date: Saturday, January 8, 2022 @ 11:04:55
  Author: alerque
Revision: 1096998

upgpkg: duf 0.7.0-1

Modified:
  duf/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-08 10:55:53 UTC (rev 1096997)
+++ PKGBUILD	2022-01-08 11:04:55 UTC (rev 1096998)
@@ -2,8 +2,8 @@
 # Contributor: Christian Muehlhaeuser <muesli at gmail dot com>
 
 pkgname=duf
-pkgver=0.6.2
-pkgrel=3
+pkgver=0.7.0
+pkgrel=1
 pkgdesc='Disk Usage/Free Utility'
 arch=(x86_64)
 url="https://github.com/muesli/$pkgname"
@@ -13,10 +13,10 @@
              go)
 _archive="$pkgname-$pkgver"
 source=("$url/archive/v$pkgver/$_archive.tar.gz")
-sha256sums=('f2314d8e5e133a6ce93968b3450c1710a3e432cb4a5dfc528aa0317d968a8988')
+sha256sums=('6f70fd0f0d51bfcfe20b8acc8c3a52573fc1ceed44ce97dbbb9d470bbe4467dc')
 
 build() {
-	local commit=$(zcat $_archive.tar.gz | git get-tar-commit-id)
+	local commit=$(zcat ${source[1]##*/} | git get-tar-commit-id)
 	local extraflags="-X main.Version=$pkgver -X main.CommitSHA=$commit"
 	export CGO_CPPFLAGS="$CPPFLAGS"
 	export CGO_CFLAGS="$CFLAGS"
@@ -34,5 +34,6 @@
 package() {
 	cd "$_archive"
 	install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
+	install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "$pkgname.1"
 	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 }



More information about the arch-commits mailing list