summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStyle Mistake2016-03-28 21:10:02 +0300
committerStyle Mistake2016-03-28 21:10:02 +0300
commit6cba847beecc4e80a01b09ef242fc64ec8dda2d5 (patch)
treee70e1722e087ff1843af3b6d51ee3cdb222b6473
parent2b444c420cb9654b0de16983a0796dc5d8ed83a4 (diff)
downloadaur-6cba847beecc4e80a01b09ef242fc64ec8dda2d5.tar.gz
Fix MP3 workaround not working when launching using desktop entry
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD17
-rw-r--r--bitwig-studio.desktop12
3 files changed, 28 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cef131be21e..c962b5f414f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Mon Mar 28 18:09:36 UTC 2016
pkgbase = bitwig-studio
pkgdesc = Music production system for production, remixing and performance
pkgver = 1.3.8
- pkgrel = 2
+ pkgrel = 3
url = http://www.bitwig.com/
arch = x86_64
license = custom
@@ -14,11 +16,15 @@ pkgbase = bitwig-studio
optdepends = oss
optdepends = ffmpeg: MP3 support
provides = bitwig-studio
+ conflicts = bitwig-studio-demo
conflicts = bitwig-studio-demo-rc
+ replaces = bitwig-studio-demo
options = !strip
source = https://downloads.bitwig.com/stable/1.3.8/bitwig-studio-1.3.8.deb
+ source = bitwig-studio.desktop
source = bitwig-studio.launcher
md5sums = 062f57caa81af1e1168680f24ec12370
+ md5sums = 6bbd6aedc339a634f089ecc9c8df1537
md5sums = 32411d3b742f15addef7b86681825fee
pkgname = bitwig-studio
diff --git a/PKGBUILD b/PKGBUILD
index 57e1e082eed..6622cbdd5eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname='bitwig-studio'
pkgver='1.3.8'
-pkgrel='2'
+pkgrel='3'
pkgdesc='Music production system for production, remixing and performance'
arch=('x86_64')
url='http://www.bitwig.com/'
@@ -15,17 +15,19 @@ license=('custom')
depends=('jack' 'xdg-utils' 'zenity' 'xcb-util-wm' 'libbsd')
optdepends=('alsa-lib' 'oss' 'ffmpeg: MP3 support')
provides=('bitwig-studio')
-conflicts=('bitwig-studio-demo-rc')
+replaces=('bitwig-studio-demo')
+conflicts=('bitwig-studio-demo' 'bitwig-studio-demo-rc')
options=(!strip)
source=("https://downloads.bitwig.com/stable/${pkgver}/bitwig-studio-${pkgver}.deb"
+ 'bitwig-studio.desktop'
'bitwig-studio.launcher')
md5sums=('062f57caa81af1e1168680f24ec12370'
+ '6bbd6aedc339a634f089ecc9c8df1537'
'32411d3b742f15addef7b86681825fee')
package() {
# Create pkgdir folders
install -d ${pkgdir}/usr/bin
- install -d ${pkgdir}/opt/bitwig-studio
install -d ${pkgdir}/opt/bitwig-studio/libexec
install -d ${pkgdir}/usr/share/{applications,icons}
install -d ${pkgdir}/usr/share/licenses/${pkgname}
@@ -33,9 +35,12 @@ package() {
# Unpack package contents
bsdtar -xf ${srcdir}/data.tar.gz -C ${pkgdir}/
- # Install launcher (replacing default symlink)
+ # Replace the launcher
install -m755 ${srcdir}/bitwig-studio.launcher ${pkgdir}/usr/bin/bitwig-studio
+ # Replace the desktop launcher
+ install -m755 ${srcdir}/bitwig-studio.desktop ${pkgdir}/usr/share/applications/bitwig-studio.desktop
+
# Workaround MP3 support by providing symlinks to ffmpeg
ln -s /usr/bin/ffmpeg ${pkgdir}/opt/bitwig-studio/libexec/avconv
ln -s /usr/bin/ffprobe ${pkgdir}/opt/bitwig-studio/libexec/avprobe
@@ -43,8 +48,4 @@ package() {
# Install license
install -m644 ${pkgdir}/opt/bitwig-studio/EULA.rtf \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-
- # Fix launcher category
- sed -i 's:Categories=Multimedia:Categories=Multimedia;AudioVideo;Player;Recorder;:' \
- ${pkgdir}/usr/share/applications/bitwig-studio.desktop
}
diff --git a/bitwig-studio.desktop b/bitwig-studio.desktop
new file mode 100644
index 00000000000..1591569e51c
--- /dev/null
+++ b/bitwig-studio.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+StartupNotify=true
+Icon=bitwig-studio.png
+Name=Bitwig Studio
+Comment=Music Application
+Exec="/usr/bin/bitwig-studio"
+Categories=Multimedia;AudioVideo;Player;Recorder
+MimeType=application/bitwig-project
+StartupWMClass="Bitwig Studio"