desktop/amarok/PKGBUILD

45 lines
1.4 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=amarok
replaces=('amarok-base' 'amarok-engine-xine' 'amarok-base-mysqlfree')
pkgver=2.5.0
pkgrel=4
pkgdesc="A media player for KDE"
arch=("i686" "x86_64")
url="http://amarok.kde.org"
license=('GPL2' 'LGPL2' 'FDL')
depends=('kde-runtime' 'mysql' 'qtscriptgenerator' 'taglib-extras' 'liblastfm' 'ffmpeg' 'libofa' 'qjson' 'loudmouth')
makedepends=('pkgconfig' 'automoc4' 'cmake' 'libgpod' 'libmtp' 'loudmouth' 'docbook-xsl' 'libmygpo-qt' )
optdepends=("libgpod: support Apple iPod audio devices"
"libmtp: support for portable media devices"
"libmygpo-qt: support for gpodder.net" )
categories=('multimedia')
install="${pkgname}.install"
source=("http://mirrors.mit.edu/kde/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2"
"toolbarfix.patch")
md5sums=('b7983eaa33e4771769ae9e330c811995'
'135ceaaf24cf9e332eb4f714700da7ee')
build() {
cd "${srcdir}"
#Patch to add the toolbar not showing well, should be removed in newer versions.
patch -Np0 -i "${srcdir}"/toolbarfix.patch
mkdir build
cd build
cmake "../${pkgname}-${pkgver}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package(){
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}