makedeb


diskus-bin 0.7.0-1


A minimal, fast alternative to 'du -sh'

Click here to go back to the commit logs for diskus-bin.

Commit:


Hash: 338be7813a43f06cf6458fdfe69055e9d6d16f56

Message: feat: Update to 0.7.0

Diff


diff --git a/.SRCINFO b/.SRCINFO
index bef4cce..d336a08 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb-makepkg
 
 pkgbase = diskus-bin
 	pkgdesc = A minimal, fast alternative to 'du -sh'
-	pkgver = 0.6.0
+	pkgver = 0.7.0
 	pkgrel = 1
 	url = https://github.com/sharkdp/diskus
 	arch = x86_64
@@ -17,7 +17,7 @@ pkgbase = diskus-bin
 	conflicts = diskus-bin
 	options = !strip
 	options = zipman
-	source = diskus-bin-0.6.0.tar.gz::https://github.com/sharkdp/diskus/releases/download/v0.6.0/diskus-v0.6.0-x86_64-unknown-linux-musl.tar.gz
-	sha512sums = df3c21ea28f93bdf17bf9f69b591e1a77033b984db670928196978875dc7351f4bdb09cfd571c660cc29ee7ff7d4d7f44d4a338371ce27cee846b50375a38ad6
+	source = diskus-bin-0.7.0.tar.gz::https://github.com/sharkdp/diskus/releases/download/v0.7.0/diskus-v0.7.0-x86_64-unknown-linux-musl.tar.gz
+	sha512sums = d32b3809fa90d06ba45f4bd4e0ec366f50f16a6e16d3eb57479d3fc03807ec084e9b725de6c4ff1c653f191515c1a32c8012120fa9e414a60f8db47bdbe0ed1f
 
 pkgname = diskus-bin
diff --git a/.gitignore b/.gitignore
index cc67b0b..5dfc70b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 !PKGBUILD
 !.SRCINFO
 !*.install
+!Makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9cb8223
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+# vim: filetype=make syntax=make textwidth=0 softtabstop=0 tabstop=4 shiftwidth=4 fileencoding=utf-8 fileformat=unix smartindent autoindent noexpandtab
+#  ────────────────────────────────────────────────────────────────────
+.PHONY: $(shell egrep -o '^[a-zA-Z_-]+:' $(MAKEFILE_LIST) | sed 's/://')
+.SILENT: $(shell egrep -o '^[a-zA-Z_-]+:' $(MAKEFILE_LIST) | sed 's/://')
+.PHONY: all
+all: help
+#  ────────────────────────────────────────────────────────────────────
+help: ## Show this help
+	@printf "$$(fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v 'fgrep' | sed -e 's/\\$$//' | sed -e 's/\s.*##//')\n"
+
+clean:
+	rm -rf src pkg *.deb *.tar.gz
+
+srcinfo: ## Generate srcinfo
+	makedeb --printsrcinfo > .SRCINFO
+--apt-update:
+	sudo apt-get update
+makedeb: ## Build the package while syncing dependencies
+	makedeb -s --no-confirm
+
+install: ## Installs the package
+	makedeb --install --no-confirm
+commit-prep: clean srcinfo ## prepares the package for commiting. only valid when used in the Docker container
+	find /workspace-git -mindepth 1 -maxdepth 1 -not -path '**/\.git' -delete \
+	&& find /workspace -mindepth 1 -maxdepth 1 -not -path '**/\.git' -exec cp -r {} /workspace-git/ \; 
+
+
+commit: VERSION = $(shell grep pkgver .SRCINFO | cut -d '=' -f 2 | tr -d '[:space:]')
+commit: commit-prep ## Commits changes to git
+	git -C "/workspace-git" add PKGBUILD Makefile  .SRCINFO .gitignore
+	git -C "/workspace-git" commit -m "feat: Update to ${VERSION}"
+
+build: --apt-update srcinfo makedeb ## Main target for building a fresh package
diff --git a/PKGBUILD b/PKGBUILD
index 84ad19c..114faf9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _pkgname="$(basename "${_github_repo}")"
 
 pkgname="${_pkgname}-bin"
 # shellcheck disable=SC2034
-pkgver="0.6.0"
+pkgver=0.7.0
 # shellcheck disable=SC2034
 pkgrel=1
 # shellcheck disable=SC2034
@@ -28,7 +28,7 @@ optdepends=("bash-completion: for supporting auto completion")
 # shellcheck disable=SC2034
 source=("${pkgname}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-${CARCH}-unknown-linux-musl.tar.gz")
 # shellcheck disable=SC2034
-sha512sums=("df3c21ea28f93bdf17bf9f69b591e1a77033b984db670928196978875dc7351f4bdb09cfd571c660cc29ee7ff7d4d7f44d4a338371ce27cee846b50375a38ad6")
+sha512sums=("d32b3809fa90d06ba45f4bd4e0ec366f50f16a6e16d3eb57479d3fc03807ec084e9b725de6c4ff1c653f191515c1a32c8012120fa9e414a60f8db47bdbe0ed1f")
 # shellcheck disable=SC2034
 options=(!strip zipman)
 pkgver() {