mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
pkgname=yarock
|
|
_pkgname=Yarock
|
|
pkgver=1.2.0
|
|
pkgrel=2
|
|
pkgdesc="A Modern Music Player with collection browser based on cover art."
|
|
arch=('x86_64')
|
|
url="https://launchpad.net/yarock"
|
|
screenshot="https://cn.pling.com/img//hive/content-pre1/129372-1.png"
|
|
license=('GPL3')
|
|
depends=('qt5-x11extras' 'taglib' 'phonon' 'phonon-qt5' 'boost' 'htmlcxx' 'qt5-translations' 'qt5-tools' 'vlc')
|
|
makedepends=('cmake' 'mpv')
|
|
optdepends=('mpv: alternative (working) engine')
|
|
categories=('multimedia')
|
|
source=("http://launchpad.net/$pkgname/1.x/$pkgver/+download/${_pkgname}_${pkgver}_Sources.tar.gz"
|
|
"qt-build.patch"
|
|
"phonon.patch")
|
|
sha256sums=('64fca62f69469f5ae29c6bab8e1603a7375f68ce044f05cf0a33a6aebcb22f4f'
|
|
'bee9ea2ca4fa4ac4227515cd4533d0b581f91e6a6297544fe3a6bcfa5dcafb7f'
|
|
'2923d2930ba7f1fe4e73ebcbbcae18e9316eb56b1f02132ea89d9d2db3f5c473')
|
|
|
|
prepare() {
|
|
rm -rf "build"
|
|
mkdir "build"
|
|
|
|
#seems not needed anymore but better keep them for now
|
|
|
|
# phonon include patch
|
|
# patch -p0 -i "phonon.patch"
|
|
# patch to fix build with recent qt5
|
|
# patch -p0 -i "qt-build.patch"
|
|
}
|
|
|
|
build() {
|
|
cd ${_pkgname}_${pkgver}_Sources
|
|
|
|
cmake CMakeLists.txt \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DENABLE_QT5=1 \
|
|
-DENABLE_MPV=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${_pkgname}_${pkgver}_Sources
|
|
make DESTDIR=$pkgdir install
|
|
}
|