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: 241f670b727f3a263051f29836e6d10efa41cf1e

Message: remove unnecessary mkdir commands. add conflicts with noisetorch package

Diff


diff --git a/PKGBUILD b/PKGBUILD
index eeba31a..56e5f6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 
 pkgname=noisetorch-bin
 pkgver=0.4.0_beta
-pkgrel=2
+pkgrel=3
 pkgdesc='Easy to use noise suppression for PulseAudio'
 arch=('x86_64')
 url="https://github.com/lawl/NoiseTorch"
@@ -10,6 +10,7 @@ license=('GPL3')
 depends=('polkit')
 optdepends=('hicolor-icon-theme')
 provides=('noisetorch')
+conflicts=('noisetorch')
 backup=("${HOME#/*}/.config/noisetorch/config.toml")
 options=(!strip)
 install="${pkgname}.install"
@@ -21,17 +22,13 @@ sha256sums=('dd551296f819887e6d0111015b259fa347aa40ced7813b6247a71712ad45452f'
             '4074b71327284b1ad75aee32bee0462360b90061237e998bf4f7e259a65e3caa')
 
 package() {
-	mkdir -p "${pkgdir}/usr/bin"
-	mkdir -p "${pkgdir}/usr/share/applications"
-
-	install -m755 .local/bin/noisetorch "${pkgdir}/usr/bin/noisetorch"
-	install -m644 .local/share/applications/noisetorch.desktop \
+	install -D -m755 .local/bin/noisetorch "${pkgdir}/usr/bin/noisetorch"
+	install -D -m644 .local/share/applications/noisetorch.desktop \
 		"${pkgdir}/usr/share/applications/noisetorch.desktop"
 
 	if [[ -d "/usr/share/icons/hicolor/256x256/apps/" ]]
 	then
-		mkdir -p "${pkgdir}/usr/share/icons/hicolor/256x256/apps"
-		install -m644 .local/share/icons/hicolor/256x256/apps/noisetorch.png \
+		install -D -m644 .local/share/icons/hicolor/256x256/apps/noisetorch.png \
 			"${pkgdir}/usr/share/icons/hicolor/256x256/apps/noisetorch.png"
 	fi
 }