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.1.6
|
|
pkgrel=1
|
|
pkgdesc="A Modern Music Player with collection browser based on cover art."
|
|
arch=('x86_64')
|
|
url="https://launchpad.net/yarock"
|
|
screenshot="http://qt-apps.org/CONTENT/content-pre2/129372-2.png"
|
|
license=('GPL3')
|
|
depends=('qt5-x11extras' 'taglib' 'phonon' 'phonon-qt5' 'boost' 'qjson' '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}_source.tar.gz"
|
|
"qt-build.patch"
|
|
"phonon.patch")
|
|
sha256sums=('a7acaeed92b23addac922ccf5e0ce076a5ac21eeb5d78005e9cfa5ff5413b387'
|
|
'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}_source
|
|
|
|
cmake CMakeLists.txt \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DENABLE_QT5=1 \
|
|
-DENABLE_MPV=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${_pkgname}_${pkgver}_source
|
|
make DESTDIR=$pkgdir install
|
|
}
|