makedeb


noisetorch-bin 0.12.2-2


Easy to use noise suppression for PulseAudio

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

Commit:


Hash: 19f1d2fd140bcbaef6146d5907e0b36132d37ccb

Message: include post-install/upgrade message regarding auto-update feature update to latest release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 48dfe7f..6e2be54 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,19 @@
 pkgbase = noisetorch-bin
 	pkgdesc = Easy to use noise suppression for PulseAudio
-	pkgver = 0.3.4_beta
-	pkgrel = 3
+	pkgver = 0.4.0_beta
+	pkgrel = 1
 	url = https://github.com/lawl/NoiseTorch
+	install = noisetorch-bin.install
 	arch = x86_64
 	license = GPL3
 	optdepends = hicolor-icon-theme
 	provides = noisetorch
 	options = !strip
-	source = noisetorch-bin-0.3.4_beta.tar.gz::https://github.com/lawl/NoiseTorch/releases/download/0.3.4-beta/NoiseTorch_x64.tgz
-	sha256sums = 2d5c3c4a9e12a078019f003312486aca4111e977bb4eae4769163712b51038f8
+	backup = home/travis/.config/noisetorch/config.toml
+	source = noisetorch-bin-0.4.0_beta.tar.gz::https://github.com/lawl/NoiseTorch/releases/download/0.4.0-beta/NoiseTorch_x64.tgz
+	source = noisetorch-bin.install
+	sha256sums = dd551296f819887e6d0111015b259fa347aa40ced7813b6247a71712ad45452f
+	sha256sums = 4074b71327284b1ad75aee32bee0462360b90061237e998bf4f7e259a65e3caa
 
 pkgname = noisetorch-bin
 
diff --git a/PKGBUILD b/PKGBUILD
index 2efc389..d402f2d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,23 @@
 # Maintainer:  Travis Collins <erbrecht at pobox dot com>
 
 pkgname=noisetorch-bin
-pkgver=0.3.4_beta
-pkgrel=3
+pkgver=0.4.0_beta
+pkgrel=1
 pkgdesc='Easy to use noise suppression for PulseAudio'
 arch=('x86_64')
 url="https://github.com/lawl/NoiseTorch"
 license=('GPL3')
 optdepends=('hicolor-icon-theme')
 provides=('noisetorch')
+backup=("${HOME#/*}/.config/noisetorch/config.toml")
 options=(!strip)
+install="${pkgname}.install"
 source=(
 	"${pkgname}-${pkgver}.tar.gz::https://github.com/lawl/NoiseTorch/releases/download/${pkgver/_/-}/NoiseTorch_x64.tgz"
+	"${pkgname}.install"
 )
-sha256sums=('2d5c3c4a9e12a078019f003312486aca4111e977bb4eae4769163712b51038f8')
+sha256sums=('dd551296f819887e6d0111015b259fa347aa40ced7813b6247a71712ad45452f'
+            '4074b71327284b1ad75aee32bee0462360b90061237e998bf4f7e259a65e3caa')
 
 package() {
 	mkdir -p "${pkgdir}/usr/bin"
diff --git a/noisetorch-bin.install b/noisetorch-bin.install
new file mode 100644
index 0000000..5a7d2dd
--- /dev/null
+++ b/noisetorch-bin.install
@@ -0,0 +1,14 @@
+post_install() {
+	printf "NoiseTorch provides an auto-update feature as part of the GUI.\n"
+	printf "I recommend disabling the auto-update feature by setting\n\n"
+	printf "$(tput setaf 4)EnableUpdates = false$(tput sgr0)\n\n"
+	printf "in $(tput setaf 2)\$HOME/.config/noisetorch/config.toml$(tput sgr0)\n"
+	printf "The feature won't work with this package.\n"
+	printf "Don't attempt to update if prompted via the GUI\n"
+	printf "See the project page for details.\n\n"
+	printf "https://github.com/lawl/NoiseTorch\n\n"
+}
+
+post_upgrade() {
+	post_install
+}