desktop/yarock/PKGBUILD

48 lines
1.4 KiB
Bash
Raw Normal View History

2011-08-26 01:44:09 +08:00
pkgname=yarock
_pkgname=Yarock
2016-01-04 23:41:01 +08:00
pkgver=1.1.5
2014-11-09 02:21:13 +08:00
pkgrel=1
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"
2011-08-26 01:44:09 +08:00
screenshot="http://qt-apps.org/CONTENT/content-pre2/129372-2.png"
license=('GPL3')
2016-01-04 23:41:01 +08:00
depends=('qt5-x11extras' 'taglib' 'phonon' 'phonon-qt5' 'boost' 'qjson' 'htmlcxx' 'qt5-translations' 'qt5-tools' 'vlc')
2015-08-18 17:46:01 +08:00
makedepends=('cmake' 'mpv')
optdepends=('mpv: alternative (working) engine')
categories=('multimedia')
2015-08-18 17:46:01 +08:00
source=("http://launchpad.net/$pkgname/1.x/$pkgver/+download/${_pkgname}_${pkgver}_source.tar.gz"
"qt-build.patch"
"phonon.patch")
2016-01-04 23:41:01 +08:00
sha256sums=('bd88f136ccf6fbc03dd82839e11ef990940d20834222a0bba3ec35a3b2fa4ec4'
'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() {
2013-12-08 06:00:14 +08:00
cd $srcdir/${_pkgname}_${pkgver}_source
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() {
2015-08-18 17:46:01 +08:00
cd $srcdir/${_pkgname}_${pkgver}_source
2013-05-12 19:47:12 +08:00
make DESTDIR=$pkgdir install
2011-12-18 22:20:32 +08:00
}