# Maintainer: Fredy GarcĂ­a # Contributor: Ronald van Haren # Contributor: Antonio Rojas # Contributor: Andrea Scarpino # Contributor: damir pkgname=amarok pkgver=2.9.0.r369.854844c1dc pkgrel=1 pkgdesc="The powerful music player for KDE" arch=("x86_64") url="http://${pkgname}.kde.org/" license=("FDL" "GPL2" "LGPL2.1") depends=("kcmutils" "kdnssd" "kirigami2" "knewstuff" "ktexteditor" "libgpod" "liblastfm-qt5" "libmtp" "libmygpo-qt5" "libofa" "mariadb" "phonon-qt5" "qt5-webengine" "taglib-extras" "threadweaver") makedepends=("extra-cmake-modules" "gdk-pixbuf2" "git" "knotifyconfig" "libgpod" "libmtp" "libmygpo-qt5" "loudmouth") optdepends=( "ifuse: support for Apple iPod Touch and iPhone" "loudmouth: backend needed by mp3tunes for syncing" ) _commit="854844c1dc2c5eedf1d9b1a383536e9d9f2e539e" source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/KDE/${pkgname}/archive/${_commit}.tar.gz" "${pkgname}_mariadb.patch" ) sha256sums=( "d670e97d712a710b74a20a46d7d8ba26b5b404d3c2de6a8f2ec49cfa43499c22" "029937d925993fa0b3cbe460f6d0c8f9fd624fc8dffff22acbbd3da600720dab" ) #git describe --long --tags 2> /dev/null | sed "s/^[A-Za-z\.\-]*//;s/\([^-]*-\)g/r\1/;s/-/./g" #source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"{,.sig}) #validpgpkeys=("D81C0CB38EB725EF6691C385BB463350D6EF31EF") # Heiko Becker prepare() { cd "${srcdir}/${pkgname}-${_commit}" patch -Np1 -i "${srcdir}/amarok_mariadb.patch" mkdir -p "${srcdir}/${pkgname}-${_commit}/build" } build() { cd "${srcdir}/${pkgname}-${_commit}/build" cmake "${srcdir}/${pkgname}-${_commit}" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF make } package() { cd "${srcdir}/${pkgname}-${_commit}/build" make DESTDIR="${pkgdir}" install }