desktop/yarock/PKGBUILD

48 lines
1.3 KiB
Bash
Raw Normal View History

2011-08-26 01:44:09 +08:00
pkgname=yarock
_pkgname=Yarock
2017-10-08 23:55:57 +08:00
pkgver=1.2.0
2017-10-24 04:24:55 +08:00
pkgrel=2
2015-08-18 17:46:01 +08:00
pkgdesc="A Modern Music Player with collection browser based on cover art."
2012-11-28 03:01:13 +08:00
arch=('x86_64')
2015-08-18 17:46:01 +08:00
url="https://launchpad.net/yarock"
2017-10-08 23:55:57 +08:00
screenshot="https://cn.pling.com/img//hive/content-pre1/129372-1.png"
2011-08-26 01:44:09 +08:00
license=('GPL3')
2017-10-08 23:55:57 +08:00
depends=('qt5-x11extras' 'taglib' 'phonon' 'phonon-qt5' 'boost' 'htmlcxx' 'qt5-translations' 'qt5-tools' 'vlc')
2015-08-18 17:46:01 +08:00
makedepends=('cmake' 'mpv')
optdepends=('mpv: alternative (working) engine')
categories=('multimedia')
2017-10-08 23:55:57 +08:00
source=("http://launchpad.net/$pkgname/1.x/$pkgver/+download/${_pkgname}_${pkgver}_Sources.tar.gz"
2015-08-18 17:46:01 +08:00
"qt-build.patch"
"phonon.patch")
2017-10-08 23:55:57 +08:00
sha256sums=('64fca62f69469f5ae29c6bab8e1603a7375f68ce044f05cf0a33a6aebcb22f4f'
2016-01-04 23:41:01 +08:00
'bee9ea2ca4fa4ac4227515cd4533d0b581f91e6a6297544fe3a6bcfa5dcafb7f'
'2923d2930ba7f1fe4e73ebcbbcae18e9316eb56b1f02132ea89d9d2db3f5c473')
2011-08-26 01:44:09 +08:00
2015-08-18 17:46:01 +08:00
prepare() {
rm -rf "build"
mkdir "build"
2015-09-01 05:53:14 +08:00
#seems not needed anymore but better keep them for now
2015-08-18 17:46:01 +08:00
# phonon include patch
2015-09-01 05:53:14 +08:00
# patch -p0 -i "phonon.patch"
2015-08-18 17:46:01 +08:00
# patch to fix build with recent qt5
2015-09-01 05:53:14 +08:00
# patch -p0 -i "qt-build.patch"
2015-08-18 17:46:01 +08:00
}
2011-08-26 01:44:09 +08:00
build() {
2017-10-08 23:55:57 +08:00
cd ${_pkgname}_${pkgver}_Sources
2013-05-12 19:47:12 +08:00
2015-08-18 17:46:01 +08:00
cmake CMakeLists.txt \
-DCMAKE_BUILD_TYPE=Release \
2013-05-12 19:47:12 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
2015-08-18 17:46:01 +08:00
-DENABLE_QT5=1 \
-DENABLE_MPV=ON
make
2011-08-26 01:44:09 +08:00
}
package() {
2017-10-08 23:55:57 +08:00
cd ${_pkgname}_${pkgver}_Sources
2013-05-12 19:47:12 +08:00
make DESTDIR=$pkgdir install
2011-12-18 22:20:32 +08:00
}