summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82899fa45e900daecde3ab3f464f9bccdb9bf702 (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
# Maintainer: mrxx <mrxx at cyberhome dot at>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: jddolvin <jddolvin at atheist dot com>
# Contributor: arriagga <ramon.arriaga at gmail dot com>
# Contributor: dieghen89 <dieghen89 at gmail dot com>

pkgname=musique
pkgver=1.12
pkgrel=2
pkgdesc='A finely crafted music player'
arch=('x86_64')
url='https://flavio.tordini.org/musique'
_giturl='https://github.com/flaviotordini'
license=('GPL3')
depends=('qt6-declarative' 'taglib' 'mpv')
makedepends=('git' 'qt6-tools')
optdepends=('finetune')
source=("git+${_giturl}/musique.git#tag=${pkgver}"
        "git+${_giturl}/http.git"
        "git+${_giturl}/idle.git"
        "git+${_giturl}/media.git"
        "git+${_giturl}/updater.git"
        "git+${_giturl}/js.git"
        "git+${_giturl}/sharedcache.git"
        "taglib.patch")
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

prepare() {
  cd $pkgname
  git submodule init
  git config submodule.lib/http.url "$srcdir/http"
  git config submodule.lib/idle.url "$srcdir/idle"
  git config submodule.lib/media.url "$srcdir/media"
  git config submodule.lib/updater.url "$srcdir/updater"
  git config submodule.lib/js.url "$srcdir/js"
  git config submodule.lib/sharedcache.url "$srcdir/sharedcache"
  git -c protocol.file.allow=always submodule update

  patch -p2 <$srcdir/taglib.patch
}

build() {
  PATH="$PATH:/usr/lib/qt6/bin"
  qmake6 $pkgname PREFIX=/usr
  make
}

package() {
  make INSTALL_ROOT="$pkgdir" install
}