summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3159724ec74ccd6cd06e9c46f83b4f5bae708972 (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
# Maintainer: Julian Pollinger <julian@pollinger.dev>
_pkgname=muse-sounds-manager
pkgname="$_pkgname-bin"
pkgver=2.0.3.659
pkgrel=1
pkgdesc="Manage MuseScore Libraries"
arch=('x86_64')
url='https://www.musehub.com/'
license=(custom:muse-sounds-manager)
provides=("$_pkgname=$pkgver")
replaces=('muse-hub')
conflicts=('muse-hub')
depends=('fontconfig' 'zlib' 'hicolor-icon-theme' 'skia-sharp')
makedepends=()
install="$_pkgname.install"
source=('https://muse-cdn.com/Muse_Sounds_Manager_x64.tar.gz' 'LICENSE')
sha256sums=('b5986615810a73cebf1ff201aa99e74f67bb56f9f8d814930fde73aa93bd682e'
            'ed3c749e7391b70b11717469815ce8fe65a962cf40dd4df88e21bf240b2058b2')
options=('!strip')

package(){
  # Extract package data
  #tar -xJ -f data.tar.xz -C "$pkgdir"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/muse-sounds-manager"

  cd $srcdir/muse_sounds_manager_x64_*

  # mkdir -p "$pkgdir/usr/lib/muse-sounds-manager"
  mkdir -p "$pkgdir/opt/muse-sounds-manager"
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/applications"
  mkdir -p "$pkgdir/usr/share/icons"

  cp bin/* "$pkgdir/opt/muse-sounds-manager/"
  rm "$pkgdir/opt/muse-sounds-manager/libSkiaSharp.so"

  ln -s /opt/muse-sounds-manager/muse-sounds-manager "$pkgdir/usr/bin/muse-sounds-manager"

  cp res/muse-sounds-manager.desktop "$pkgdir/usr/share/applications/muse-sounds-manager.desktop"

  cp -r res/icons/* "$pkgdir/usr/share/icons"
}

pkgver() {
  folder_name=$(ls | grep -E '^muse_sounds_manager_x64_[0-9]+(\.[0-9]+)+$')
  version=$(echo "$folder_name" | grep -oP '\d+(\.\d+)+$')
  echo "$version"
}