makedeb


tap 2.0.5-1


MPR in your pocket

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

Commit:


Hash: 8837e4313c09504007649c1905bc9c38e9a0e1ab

Message: Updated version to 0.27.0-1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index ac36292..05970e1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,10 +2,9 @@ generated-by = makedeb-makepkg
 
 pkgbase = tap
 	pkgdesc = MPR in your pocket
-	pkgver = 0.26.2
+	pkgver = 0.27.0
 	pkgrel = 1
 	url = https://github.com/hwittenborn/tap
-	install = .install
 	arch = any
 	license = GPL3
 	depends = python3
@@ -13,7 +12,7 @@ pkgbase = tap
 	depends = bash-completion
 	depends = jq
 	conflicts = node-tap
-	source = https://github.com/hwittenborn/tap/archive/refs/tags/v0.26.2.tar.gz
+	source = git+https://github.com/hwittenborn/tap/#tag=v0.27.0
 	sha256sums = SKIP
 
 pkgname = tap
diff --git a/PKGBUILD b/PKGBUILD
index 1d16efe..4ec75ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
 pkgname=tap
-pkgver=0.26.2
+pkgver=0.27.0
 pkgrel=1
 pkgdesc="MPR in your pocket"
 arch=('any')
@@ -10,34 +10,15 @@ license=('GPL3')
 control_fields=("MPR-Package: ${pkgname}")
 url="https://github.com/hwittenborn/tap"
 
-install=".install"
-
-source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
+source=("git+${url}/#tag=v${pkgver}")
 sha256sums=('SKIP')
 
-package() {
-	cd "${pkgname}-${pkgver}"
-
-	# Create executable for tap
-	mkdir -p "${pkgdir}/usr/bin/"
-	echo '#!/usr/bin/env python3' > "${pkgdir}/usr/bin/tap"
-
-	# Copy data from source files into executable
-	for i in $(find "src/functions/" -type f | grep '\.py$'); do
-		cat "${i}" >> "${pkgdir}/usr/bin/tap"
-	done
-
-	cat "src/main.py" >> "${pkgdir}/usr/bin/tap"
-
-	# Remove testing commands
-	sed -i 's|.*# REMOVE AT PACKAGING||' "${pkgdir}/usr/bin/tap"
-
-	# Set package version
-	sed -i "s|application_version =.*|application_version = '${pkgver}-${pkgrel}'|" "${pkgdir}/usr/bin/tap"
-
-	# Set perms on executable
-	chmod 555 "${pkgdir}/usr/bin/tap"
+prepare() {
+	cd tap/
+	make prepare PKGVER="${pkgver}"
+}
 
-	# Install completion script
-	install -Dm 555 "completions/tap.bash" "${pkgdir}/usr/share/bash-completion/completions/tap"
+package() {
+	cd tap/
+	make install DESTDIR="${pkgdir}"
 }