makedeb


tap 2.0.5-1


MPR in your pocket

Click here to go back to the commit logs for tap.

Commit:


Hash: f5eed350bf29e7e329234036197ba47639d16ebc

Message: Updated version to 0.15.0-1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 17d163e..0bca37b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = tap
 	pkgdesc = MPR in your pocket
-	pkgver = 0.14.0
+	pkgver = 0.15.0
 	pkgrel = 1
 	url = https://github.com/hwittenborn/tap
 	install = .install
@@ -8,8 +8,10 @@ pkgbase = tap
 	license = GPL3
 	depends = python3
 	depends = python3-requests
+	depends = bash-completion
+	depends = jq
 	conflicts = node-tap
-	source = https://github.com/hwittenborn/tap/archive/refs/tags/v0.14.0.tar.gz
+	source = https://github.com/hwittenborn/tap/archive/refs/tags/v0.15.0.tar.gz
 	sha256sums = SKIP
 
 pkgname = tap
diff --git a/.install b/.install
index be4f533..59ee7e0 100644
--- a/.install
+++ b/.install
@@ -1,18 +1,14 @@
 #!/usr/bin/env bash
 pre_install() {
-	if [[ "${1}" == "upgrade" ]]; then
-
-		bad_packages="$(dpkg-query --show --showformat '${Package}/${MPR-Package}\n' | grep '^[^/]*/True' | grep -v '^True/True')"
-
-		if [[ "${bad_packages}" != "" ]]; then
-			echo
-			printf "\033[1;31m[WARNING]\033[0;00m Your system appears to contain MPR packages that Tap is unable to upgrade due to known bugs in previous versions of Tap.\n"
-			echo "You'll need to reinstall all affected packages with 'tap install' to fix any issues with upgrading."
-			echo
-			echo "To find the affected packages, you can use the following command:"
-			echo "  dpkg-query --show --showformat '\${Package}/\${MPR-Package}\n' | grep '^[^/]*/True' | grep -v '^True/True' | awk -F '/' '{print \$1}'"
-			echo
-		fi
+	bad_packages="$(dpkg-query --show --showformat '${Package}/${MPR-Package}\n' | grep '^[^/]*/True' | grep -v '^True/True')"
 
+	if [[ "${bad_packages}" != "" ]]; then
+		echo
+		printf "\033[1;31m[WARNING]\033[0;00m Your system appears to contain MPR packages that Tap is unable to upgrade due to known bugs in previous versions of Tap.\n"
+		echo "You'll need to reinstall all affected packages with 'tap install' to fix any issues with upgrading."
+		echo
+		echo "To find the affected packages, you can use the following command:"
+		echo "  dpkg-query --show --showformat '\${Package}/\${MPR-Package}\n' | grep '^[^/]*/True' | grep -v '^True/True' | awk -F '/' '{print \$1}'"
+		echo
 	fi
 }
diff --git a/PKGBUILD b/PKGBUILD
index d061f47..c6c08bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
 # Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
 pkgname=tap
-pkgver=0.14.0
+pkgver=0.15.0
 pkgrel=1
 pkgdesc="MPR in your pocket"
 arch=('any')
-depends=('python3' 'python3-requests')
+depends=('python3' 'python3-requests' 'bash-completion' 'jq')
 conflicts=('node-tap')
 license=('GPL3')
 control_fields=("MPR-Package: ${pkgname}")
@@ -37,4 +37,7 @@ package() {
 
 	# Set perms on executable
 	chmod 555 "${pkgdir}/usr/bin/tap"
+
+	# Install completion script
+	install -Dm 555 "completions/tap.bash" "${pkgdir}/usr/share/bash-completion/completions/tap"
 }