desktop/tomahawk/PKGBUILD

46 lines
1.3 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
2015-12-09 03:21:19 +08:00
pkgrel=6
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')
makedepends=('boost' 'cmake' 'sparsehash' 'qt5-tools' 'telepathy-qt5')
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"
'chakra-build.patch')
md5sums=('04832abe1786edcc55805875b5882445'
'2f46cf4c280e9130f5b9a0ab0270bf37')
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"
}
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 \
"../${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
}