summaryrefslogtreecommitdiff
path: root/nonprism/amarok/PKGBUILD
blob: eb214a21cabae00e3e70d73283b4ef76d6943840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $Id: PKGBUILD 287014 2017-01-20 13:07:45Z arojas $
# Maintainer (Arch): Ronald van Haren <ronald@archlinux.org>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
# Contributor (Arch): damir <damir@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgname=amarok
pkgver=2.8.0
pkgrel=11.nonprism1
pkgdesc="The powerful music player for KDE, without Amazon MP3 store support"
arch=("i686" "x86_64")
url="http://amarok.kde.org/"
license=('GPL2' 'LGPL2.1' 'FDL')
replaces=(${pkgname}-nonprism)
conflicts=(${pkgname}-nonprism)
depends=('kdebase-runtime' 'mariadb' 'qtscriptgenerator' 'taglib-extras'
        'liblastfm' 'ffmpeg' 'libofa' 'qjson')
makedepends=('pkgconfig' 'automoc4' 'cmake' 'libgpod' 'libmtp' 'loudmouth'
             'libmygpo-qt' 'mesa')
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"
            "gst-libav: MP3 codecs")
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2"
        taglib_version_detect.patch amarok-ffmpeg3.patch::"https://git.reviewboard.kde.org/r/126682/diff/raw/"
        amarok-no-kdewebkit.patch amarok-plasma5.7.patch
        remove-amazon-references-on-docs.patch)
sha1sums=('e76ccd53c05d57f9457d74cd08c2c41383c00937'
          '8b2752a0fe78621bdb9ccdb763919ea265b52b06'
          '819cb060cd9c63b576cc433f835cb4c175b07fd0'
          '8e73df4764db86ca5ac1639d3b3b4812cb4e827a'
          '9908c154bf583a1755acf59f9d2790aaff503162'
          'eed2616fd1465cd16f86f2e3554e3b34b83557af')

prepare() {
  cd ${pkgname}-${pkgver}
  sed -i '\|amzdownloader|d' utilities/CMakeLists.txt
  sed -i '\|amazon|d' src/services/CMakeLists.txt
  patch -Np1 -i ../remove-amazon-references-on-docs.patch
  cd ..
  mkdir build

  cd ${pkgname}-${pkgver}
  patch -Np1 -i ../taglib_version_detect.patch
  # fix build against ffmpeg 3.0
  patch -p1 -i ../amarok-ffmpeg3.patch
  # don't link to kdewebkit (Fedora)
  patch -p1 -i ../amarok-no-kdewebkit.patch
  # fix tooltips MPRIS controls in Plasma 5.7
  patch -p1 -i ../amarok-plasma5.7.patch
}

build() {
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DKDE4_BUILD_TESTS=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DWITH_NepomukCore=OFF \
    -DWITH_Soprano=OFF
  make
}

package(){
  cd build
  make DESTDIR="${pkgdir}" install
}