blob: 9df58a3cffca7328fe5f1087348517373df3e2bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Jonathon Fernyhough <jonathon at_m2x+dev>
# Contributor: Aleksej Komarov <stylemistake@gmail.com>
# Contributor: MKzero <info[at]linux-web-development[dot]de>
# Upstream: Bitwig GmbH <support@bitwig.com>
# Original PKGBUILD taken wholesale from stylemistake's bitwig-studio package
# JF added a prepare() to allow side-by-side installation with release version
pkgname=bitwig-studio-beta
_pkgname=bitwig-studio
_pkgver=4.4
pkgver=${_pkgver}.2
pkgrel=1
pkgdesc='Digital audio workstation for music production, remixing and live performance'
arch=('x86_64')
url='https://www.bitwig.com/'
license=('custom')
# Deps from bitwig-studio package
#depends=('jack' 'xdg-utils' 'zenity' 'xcb-util-wm' 'libbsd')
# Deps as suggested by namcap...
depends=('gtk3' 'lib32-libx11' 'lib32-libxkbcommon' 'libxkbcommon-x11' 'xcb-util' 'xcb-util-wm')
optdepends=('alsa-lib' 'jack' 'oss' 'ffmpeg: MP3 support')
provides=('bitwig-studio')
options=(!strip)
#source=("$_pkgname-$pkgver.deb::https://downloads.bitwig.com/${_pkgver}%20Beta%20${pkgver#*beta}/bitwig-studio-${pkgver}.deb")
source=("$_pkgname-$pkgver.deb::https://downloads.bitwig.com/stable/${pkgver}/bitwig-studio-${pkgver}.deb")
b2sums=('752c661906e4c3af169b8fb32cfef3892e633c270bb7f2d64962810729501b18fdcab34f927c66aab1a7089e1caca19d220284d4a452fd9712eae5f0ec6b7ee4')
prepare() {
msg2 "Unpacking archive contents..."
bsdtar -xf ${srcdir}/data.tar.xz -C ${srcdir}/
msg2 "Moving things around so we can install side-by-side with bitwig-studio..."
cd ${srcdir}/opt/
mv ${_pkgname} ${pkgname}
cd ${srcdir}/usr/
rm bin/${_pkgname}
ln -s /opt/${pkgname}/${_pkgname} bin/${pkgname}
cd share/
mv applications/com.bitwig.BitwigStudio.desktop applications/com.bitwig.BitwigStudioBeta.desktop
sed -i "s|${_pkgname}|${pkgname}|g;
s|Bitwig Studio|Bitwig Studio Beta|g;
s|BitwigStudio|BitwigStudioBeta|g;
12s|bitwig-|bitwig-beta-|g;" applications/com.bitwig.BitwigStudioBeta.desktop
mv metainfo/com.bitwig.BitwigStudio.appdata.xml metainfo/com.bitwig.BitwigStudioBeta.appdata.xml
sed -i "5s|BitwigStudio|BitwigStudioBeta|;
8s|Bitwig Studio|Bitwig Studio Beta|;
s|application/bitwig-|application/bitwig-beta-|g" metainfo/com.bitwig.BitwigStudioBeta.appdata.xml
mv mime/packages/com.bitwig.BitwigStudio.xml mime/packages/com.bitwig.BitwigStudioBeta.xml
sed -i "s|bitwig-|bitwig-beta-|g;
s|BitwigStudio|BitwigStudioBeta|g;
s|Studio |Studio Beta |g" mime/packages/com.bitwig.BitwigStudioBeta.xml
cd icons/hicolor/
for icon in 48x48/apps/*.png 128x128/apps/*png scalable/apps/*.svg; do
mv "$icon" "${icon/Studio/StudioBeta}"
done
for icon in scalable/mimetypes/*.svg; do
mv "$icon" "${icon/Studio.application-bitwig/StudioBeta.application-bitwig-beta}"
done
}
package() {
mv ${srcdir}/{opt,usr} ${pkgdir}/
# Install license
install -D -m644 ${pkgdir}/opt/${pkgname}/EULA.rtf ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|