summaryrefslogtreecommitdiff
path: root/nonprism/amarok-nonprism/PKGBUILD
blob: 03588415a7b61d2a86f8e4f0c8f0ddad4a7bcd2c (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
# $Id: PKGBUILD 202413 2013-12-21 18:12:28Z andyrtr $
# Maintainer: Ronald van Haren <ronald@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>

_pkgname=amarok
pkgname=amarok-nonprism
pkgver=2.8.0
pkgrel=2
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
conflicts=$_pkgname
provides=$_pkgname=$pkgver
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")
install="${_pkgname}.install"
source=("http://download.kde.org/stable/${_pkgname}/${pkgver}/src/${_pkgname}-${pkgver}.tar.bz2")
sha1sums=('e76ccd53c05d57f9457d74cd08c2c41383c00937')

prepare() {
  cd ${srcdir}/${_pkgname}-${pkgver}
  sed -i '\|amzdownloader|d' utilities/CMakeLists.txt
  sed -i '\|amazon|d' src/services/CMakeLists.txt
  cd ..
  mkdir build
}

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

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