mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
0af05b343a
renamed checksums to kdeapps.sums added for all packages the pgp signature for new/removed packages check: https://community.kde.org/Applications/16.12_Release_Notes#Tarballs_that_we_have_split
62 lines
1.9 KiB
Bash
62 lines
1.9 KiB
Bash
pkgname=tomahawk
|
|
pkgver=0.8.4
|
|
pkgrel=11
|
|
pkgdesc="The social media player. A Music Player App written in C++/Qt"
|
|
arch=('x86_64')
|
|
url="http://tomahawk-player.org/"
|
|
screenshot="https://img.skitch.com/20110813-n6w28ugdugyeptxgaj83y4ptp5.medium.jpg"
|
|
license=('GPL3')
|
|
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')
|
|
optdepends=('telepathy-qt5: integration with Telepathy')
|
|
conflicts=('tomahawk-git')
|
|
categories=('multimedia')
|
|
options=(!strip)
|
|
source=("http://download.tomahawk-player.org/${pkgname}-${pkgver}.tar.bz2"
|
|
'chakra-build.patch'
|
|
'quazip5.patch'
|
|
"https://github.com/tomahawk-player/tomahawk/commit/09e9a6e960b7cc29018721075d82ba994dc87ab6.patch")
|
|
md5sums=('04832abe1786edcc55805875b5882445'
|
|
'2f46cf4c280e9130f5b9a0ab0270bf37'
|
|
'd95c02d871ee6895df0612aba44f98f8'
|
|
'691561b9c53d3df487e7305bc361bce0')
|
|
|
|
prepare() {
|
|
rm -rf "build"
|
|
mkdir "build"
|
|
|
|
# patch to enable libechonest and liblastfm
|
|
patch -p0 -i "chakra-build.patch"
|
|
|
|
# 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"
|
|
|
|
}
|
|
|
|
build() {
|
|
cd "build"
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_INSTALL_LIBEXECDIR="lib/${pkgname}" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_WITH_QT4=OFF \
|
|
-DBUILD_HATCHET=OFF \
|
|
-DTAGLIB_MIN_VERSION=1.10 \
|
|
-DQuaZip_INCLUDE_DIR=/usr/include/quazip5 \
|
|
-DQuaZip_LIBRARY=/usr/lib/libquazip5.so.1 \
|
|
"../${pkgname}-${pkgver}"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "build"
|
|
make DESTDIR=${pkgdir} install
|
|
}
|