summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b36356c8cb098be64c908405812d4999f1bd21ab (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
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
# Contributor: Maƫl Kerbiriou <mael.kerbiriou-at-free-dot-fr>
# Maintainer: Evert Vorster <evorster-at-gmail-dot-com>

pkgname=amarok-git
pkgver=2.9.0.r225.gd98ec3f7a9
pkgrel=1
pkgdesc="The powerful music player for KDE - GIT version"
arch=("i686" "x86_64")
url="http://amarok.kde.org"
license=('GPL2' 'LGPL2.1' 'FDL')
depends=('kdelibs4support' 'threadweaver' 'plasma-framework'
         'kcmutils' 'knewstuff' 'ktexteditor' 'knotifyconfig' 'kdnssd'
         'libmariadbclient' 'taglib-extras' 'gst-plugins-bad'
         'qca-qt5' 'liblastfm-qt5' 'qt5-webkit' 'ffmpeg')
makedepends=('pkgconfig' 'extra-cmake-modules' 'kdoctools')
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-qt5-git: gpodder.net Internet Service"
            "clamz: allow to download songs from Amazon.com")
conflicts=('amarok' 'amarok2')
provides=('amarok')
#install="${pkgname}.install"
#source=(${pkgname}::git://anongit.kde.org/amarok.git)
source=(git://anongit.kde.org/amarok.git)
sha1sums=('SKIP')

pkgver() {
    cd amarok
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

#prepare(){
#cd amarok
#pwd;
#patch -Np1 <../../amarok.kf5-git-savechanges.patch
#}

build() {
    rm -rf build
    mkdir -p build
    cd build
    cmake ../amarok \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_BUILD_TYPE=Release

    make
}

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