desktop/tomahawk/PKGBUILD

62 lines
1.9 KiB
Bash
Raw Normal View History

2011-11-17 09:26:06 +08:00
pkgname=tomahawk
2015-04-15 19:52:21 +08:00
pkgver=0.8.4
pkgrel=11
2011-11-17 09:26:06 +08:00
pkgdesc="The social media player. A Music Player App written in C++/Qt"
arch=('x86_64')
2011-11-17 09:26:06 +08:00
url="http://tomahawk-player.org/"
screenshot="https://img.skitch.com/20110813-n6w28ugdugyeptxgaj83y4ptp5.medium.jpg"
license=('GPL3')
2015-11-18 04:44:44 +08:00
depends=('attica-qt5' 'gnutls' 'libechonest' 'liblastfm' 'lucene++'
'phonon-qt5' 'qca-qt5' 'qt5-svg' 'qt5-webkit' 'qtkeychain-qt5' 'quazip'
'taglib>=1.10' 'boost')
makedepends=('cmake' 'sparsehash' 'qt5-tools' 'telepathy-qt5')
2015-11-18 04:44:44 +08:00
optdepends=('telepathy-qt5: integration with Telepathy')
2011-11-17 09:26:06 +08:00
conflicts=('tomahawk-git')
categories=('multimedia')
2011-11-17 09:26:06 +08:00
options=(!strip)
2015-11-18 04:44:44 +08:00
source=("http://download.tomahawk-player.org/${pkgname}-${pkgver}.tar.bz2"
2016-04-25 23:29:18 +08:00
'chakra-build.patch'
'quazip5.patch'
"https://github.com/tomahawk-player/tomahawk/commit/09e9a6e960b7cc29018721075d82ba994dc87ab6.patch")
2015-11-18 04:44:44 +08:00
md5sums=('04832abe1786edcc55805875b5882445'
2016-04-25 23:29:18 +08:00
'2f46cf4c280e9130f5b9a0ab0270bf37'
'd95c02d871ee6895df0612aba44f98f8'
'691561b9c53d3df487e7305bc361bce0')
2011-11-17 09:26:06 +08:00
2015-11-18 04:44:44 +08:00
prepare() {
rm -rf "build"
mkdir "build"
2011-11-17 09:26:06 +08:00
2015-11-18 04:44:44 +08:00
# patch to enable libechonest and liblastfm
patch -p0 -i "chakra-build.patch"
2016-04-25 23:29:18 +08:00
# patch to use quazip 5
patch -p0 -i "quazip5.patch"
cd ${srcdir}/${pkgname}-${pkgver}
# Fixed crash in TrackView.cpp triggered by Qt >5.6.1.
# https://github.com/tomahawk-player/tomahawk/commit/09e9a6e960b7cc29018721075d82ba994dc87ab6
patch -Np1 -i "${srcdir}/09e9a6e960b7cc29018721075d82ba994dc87ab6.patch"
2016-04-25 23:29:18 +08:00
2015-11-18 04:44:44 +08:00
}
2011-11-17 09:26:06 +08:00
2015-11-18 04:44:44 +08:00
build() {
cd "build"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
2015-11-18 04:44:44 +08:00
-DCMAKE_INSTALL_LIBEXECDIR="lib/${pkgname}" \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WITH_QT4=OFF \
-DBUILD_HATCHET=OFF \
-DTAGLIB_MIN_VERSION=1.10 \
2016-04-25 23:29:18 +08:00
-DQuaZip_INCLUDE_DIR=/usr/include/quazip5 \
-DQuaZip_LIBRARY=/usr/lib/libquazip5.so.1 \
2015-11-18 04:44:44 +08:00
"../${pkgname}-${pkgver}"
2011-11-17 09:26:06 +08:00
make
}
package() {
2015-11-18 04:44:44 +08:00
cd "build"
2011-11-17 09:26:06 +08:00
make DESTDIR=${pkgdir} install
}