summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57fee523582720a2720313cf1cc4104c2a25c9fa (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
# Maintainer: Ivan Semkin <ivan at semkin dot ru>
# Contributor Colin Duquesnoy <colin.duquesnoy@gmail.com>
# Contributor ZeroDot1 <zerodot1@bk.ru>

pkgname=mellowplayer-git
_pkgname=MellowPlayer
pkgver=3.6.2.r5.g87518a84
pkgrel=2
pkgdesc='Open source and cross-platform desktop application that runs web-based music streaming 
         services in its own window and provides integration with your desktop.'
url='https://gitlab.com/ColinDuquesnoy/MellowPlayer'
license=(GPL)
conflicts=(mellowplayer)
provides=(mellowplayer)
arch=('x86_64' 'aarch64')
depends=('qt5-base' 'qt5-webengine' 'qt5-svg' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-translations' 'qt5-graphicaleffects' 'xdg-utils' 'libnotify' 'libevent')
makedepends=('git' 'qt5-tools' 'cmake' 'mesa' 'ninja' 'pkgconf')
optdepends=( 'chromium-widevine: DRM needed for Spotify and Amazon Music' 'pepper-flash: needed for Tidal')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_pkgname}"
  cmake -GNinja -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" .
  ninja
}

package() {
  cd "${srcdir}/${_pkgname}"
  ninja install
}