mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-10 02:34:38 +08:00
48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
pkgname=yarock
|
|
_pkgname=Yarock
|
|
pkgver=1.1.4
|
|
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')
|
|
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")
|
|
sha512sums=('3175acae4df5c9df1f7174065f1a0e82a8e1dfbc85e49c6e9edd431bb15416fe2fafec2ac8172818c168fbc1771fad96da196bb2aed99be98a262830831b13c5'
|
|
'59a0fe566e016f339b660a9773759708055493d1265652340c9b9a42121d4cc98d5e3777f9e2ab045e168df2f63fb9d37d3a2a7a0a2faf91bd217fb94c611300'
|
|
'44d88dee63e056daf1d7176dcbff0b54d8c8b23cbe937ad68a712a7ce02bcb919067a47c201f793f3143ff2941ff7d3009868c7a3e603076cb8493651568ced6')
|
|
|
|
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 $srcdir/${_pkgname}_${pkgver}_source
|
|
|
|
cmake CMakeLists.txt \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DENABLE_QT5=1 \
|
|
-DENABLE_MPV=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/${_pkgname}_${pkgver}_source
|
|
make DESTDIR=$pkgdir install
|
|
}
|