# $Id: PKGBUILD 53517 2009-10-01 22:05:09Z andrea $ # Contributor: Andrea Scarpino # Contributor: damir pkgname=amarok replaces=('amarok-base' 'amarok-engine-xine' 'amarok-base-mysqlfree') pkgver=2.2.0 pkgrel=1 pkgdesc="A media player for KDE" arch=("i686" "x86_64") url="http://amarok.kde.org" license=('GPL2' 'LGPL2' 'FDL') depends=('mysql>=5.1.37' 'kdebase-runtime>=4.3' 'libmtp>=0.3.7' 'libgpod>=0.7.2' 'libmp4v2' 'qtscriptgenerator>=0.1.0' 'taglib-extras>=1.0.1' 'liblastfm>=0.3.0' 'loudmouth>=1.4.3') makedepends=('pkgconfig' 'automoc4' 'cmake') install=amarok.install source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2") md5sums=('5a0188c5eb7d343109b82964942d8eb5') build() { cd ${srcdir} mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \ -DCMAKE_INSTALL_PREFIX=/usr make || return 1 make DESTDIR=${pkgdir} install || return 1 }