# $Id: PKGBUILD 191886 2013-08-01 06:53:20Z bpiotrowski $ # Maintainer: Ronald van Haren # Contributor: Andrea Scarpino # Contributor: damir pkgname=amarok replaces=('amarok-base' 'amarok-engine-xine' 'amarok-base-mysqlfree') pkgver=2.7.1 pkgrel=3 pkgdesc="The powerful music player for KDE" arch=("i686" "x86_64") url="http://amarok.kde.org/" license=('GPL2' 'LGPL2.1' 'FDL') depends=('kdebase-runtime' 'mariadb' 'qtscriptgenerator' 'taglib-extras' 'liblastfm' 'ffmpeg' 'libofa' 'qjson') makedepends=('pkgconfig' 'automoc4' 'cmake' 'libgpod' 'libmtp' 'loudmouth' 'libmygpo-qt' 'mesa' 'clamz') optdepends=("libgpod: support for Apple iPod audio devices" "libmtp: support for portable media devices" "loudmouth: backend needed by mp3tunes for syncing" "ifuse: support for Apple iPod Touch and iPhone" "libmygpo-qt: gpodder.net Internet Service" "clamz: allow to download songs from Amazon.com") install="${pkgname}.install" source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2" 'kde411.patch') sha1sums=('445eba6aaadface756410cf0f568a3770d437d2d' 'c2fd0153ec622fccac47ebd31a1b0548c6222541') prepare() { mkdir build cd ${pkgname}-${pkgver} patch -p1 -i "${srcdir}"/kde411.patch } build() { cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DKDE4_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX=/usr make } package(){ cd build make DESTDIR="${pkgdir}" install }