# Maintainer: Mihkel Tõnnov # Contributor: Rhinoceros # Contributor: Evert Vorster # Contributor: Luca Weiss # Contributor: Jakub Schmidtke # Contributor: Maël Kerbiriou pkgname=amarok-git pkgver=2.9.71.r377.g9d74990 pkgrel=1 pkgdesc="The powerful music player for KDE" arch=("i686" "x86_64") url="http://amarok.kde.org" license=("GPL2" "LGPL2.1" "FDL") depends=("threadweaver5" "qt5-webengine" "phonon-qt5" "qt5-declarative" "qt5-script" "kcmutils5" "knewstuff5" "ktexteditor5" "kdnssd5" "kirigami2" "mariadb" "libmariadbclient" "fftw" "liblastfm-qt5" "ffmpeg" "taglib>=2.0" "libofa") makedepends=("git" "extra-cmake-modules" "kdoctools5" "gdk-pixbuf2" "knotifyconfig5" "libmtp" "libgpod" "loudmouth" "libmygpo-qt5" "qt5-tools") optdepends=("libmtp: support for portable media devices" "ifuse: support for Apple iPod Touch and iPhone" "libgpod: support for Apple iPod audio devices" "loudmouth: backend needed by mp3tunes for syncing" "libmygpo-qt5: gpodder.net Internet Service" "taglib-extras: taglib plugins for Audible and RealMedia files" "gmock: tests") conflicts=("amarok" "taglib-extras<1.0.1-8") provides=("amarok") source=("git+https://invent.kde.org/multimedia/amarok.git") sha512sums=("SKIP") pkgver() { cd "$srcdir/amarok" set -o pipefail git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { # Taglib-extras were removed and then re-added to optdepends (after fixing its build against taglib 2.0), so better warn if anyone still has the old version installed if [[ $(pacman -Q taglib-extras 2>&1 | cut -d ' ' -f 2) < "1.0.1-8" ]]; then echo "You have an old version of 'taglib-extras' installed. This will break the build - please uninstall it or update to 1.0.1-8 from AUR." return 1 fi cd "${srcdir}/amarok" # patch -Np1 -i "${srcdir}/Patch.diff" mkdir -p "${srcdir}/build" } build() { cd "${srcdir}/build" cmake "${srcdir}/amarok" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF \ -DCMAKE_BUILD_TYPE=Release make } package(){ cd "${srcdir}/build" make "DESTDIR=${pkgdir}" install }