1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-10 11:05:03 -05:00
arch-ppa/src/mellowplayer/PKGBUILD

37 lines
1.4 KiB
Bash
Raw Normal View History

2018-12-22 10:19:40 -05:00
# Maintainer: Colin Duquesnoy <colin.duquesnoy@gmail.com>
# Maintainer: ZeroDot1 <zerodot1@bk.ru>
pkgname=mellowplayer
_pkgname=MellowPlayer
2019-03-03 20:21:14 -05:00
pkgver=3.5.2
pkgrel=2
2018-12-22 10:19:40 -05:00
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://github.com/ColinDuquesnoy/MellowPlayer'
license=('GPL')
arch=('x86_64')
depends=('qt5-base' 'qt5-webengine' 'qt5-svg' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-translations' 'qt5-graphicaleffects' 'xdg-utils' 'libnotify' 'libevent')
2019-03-03 20:21:14 -05:00
makedepends=('qt5-tools' 'cmake' 'mesa')
2018-12-22 10:19:40 -05:00
optdepends=( 'qt5-webengine-widevine: DRM needed for Spotify' 'pepper-flash: needed for Tidal and Deezer')
2019-03-03 20:21:14 -05:00
source=("https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/${pkgver}/MellowPlayer-${pkgver}.tar.gz"
2018-12-22 10:19:40 -05:00
"widevine-path.patch")
2019-03-03 20:21:14 -05:00
md5sums=('604a33c9f3608ee7403675969c1de902'
2018-12-22 10:19:40 -05:00
'67f8c5c6af4b770a4017a5ca9f137b90')
prepare() {
2019-03-03 20:21:14 -05:00
cd $srcdir/MellowPlayer-${pkgver}
patch -Np1 -i "${srcdir}/widevine-path.patch" "$srcdir/MellowPlayer-${pkgver}/src/main/share/applications/mellowplayer.desktop"
2018-12-22 10:19:40 -05:00
}
build() {
2019-03-03 20:21:14 -05:00
cd $srcdir/MellowPlayer-${pkgver}
export MAKEFLAGS="-j$(nproc)"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
make
2018-12-22 10:19:40 -05:00
}
package() {
2019-03-03 20:21:14 -05:00
cd $srcdir/MellowPlayer-${pkgver}
make DESTDIR=${pkgdir} install
2018-12-22 10:19:40 -05:00
}