summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Collins2020-07-17 21:58:22 -0400
committerTravis Collins2020-07-17 21:58:48 -0400
commit19f1d2fd140bcbaef6146d5907e0b36132d37ccb (patch)
tree287f1f1f9aa624bff8662b38e4131055dd969ad8
parent1d26c73dfa71cbad827385b537d224a10ea6ad96 (diff)
downloadaur-19f1d2fd140bcbaef6146d5907e0b36132d37ccb.tar.gz
include post-install/upgrade message regarding auto-update feature
update to latest release
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD10
-rw-r--r--noisetorch-bin.install14
3 files changed, 29 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 48dfe7f74e69..6e2be548ab23 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 2efc3899cd85..d402f2ddb260 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 000000000000..5a7d2dde13d4
--- /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
+}