diff --git a/multimedia/sound/amarok/actions.py b/multimedia/sound/amarok/actions.py
new file mode 100644
index 0000000000..117d012ce9
--- /dev/null
+++ b/multimedia/sound/amarok/actions.py
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# Licensed under the GNU General Public License, version 3.
+# See the file http://www.gnu.org/licenses/gpl.txt
+
+from pisi.actionsapi import get
+from pisi.actionsapi import kde5
+from pisi.actionsapi import pisitools
+from pisi.actionsapi import shelltools
+
+shelltools.export("XDG_DATA_DIRS", get.workDIR())
+
+def setup():
+ shelltools.system("sed -i -e 's|PATH_SUFFIXES lastfm5|PATH_SUFFIXES lastfm|' cmake/modules/FindLibLastFm.cmake")
+ kde5.configure("-DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=lib \
+ -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ -DBUILD_TESTING=OFF \
+ -DKDE_DISTRIBUTION_TEXT='PisiLinux'")
+
+def build():
+ kde5.make()
+
+def install():
+ kde5.install()
+
+ pisitools.dodoc("AUTHORS", "README", "COPYING", "ChangeLog")
diff --git a/multimedia/sound/amarok/files/rb126682.patch b/multimedia/sound/amarok/files/rb126682.patch
new file mode 100644
index 0000000000..b136bbe93b
--- /dev/null
+++ b/multimedia/sound/amarok/files/rb126682.patch
@@ -0,0 +1,85 @@
+diff --git a/src/musicbrainz/MusicDNSAudioDecoder.cpp b/src/musicbrainz/MusicDNSAudioDecoder.cpp
+index 6216e5ce26cc3461b89aea560943ad7a79101af9..65a92fb43811d0cbdde5e2442880496b3417da68 100644
+--- a/src/musicbrainz/MusicDNSAudioDecoder.cpp
++++ b/src/musicbrainz/MusicDNSAudioDecoder.cpp
+@@ -243,7 +243,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+ {
+ if( !decodedFrame )
+ {
+- decodedFrame = avcodec_alloc_frame();
++ decodedFrame = av_frame_alloc();
+ if( !decodedFrame )
+ {
+ warning() << "Unable to allocate enough memory to decode file.";
+@@ -251,7 +251,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+ break;
+ }
+ else
+- avcodec_get_frame_defaults( decodedFrame );
++ av_frame_unref( decodedFrame );
+ }
+
+ decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
+@@ -287,7 +287,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+
+ avcodec_close( pCodecCtx );
+ avformat_close_input( &pFormatCtx );
+- av_free( decodedFrame );
++ av_frame_free( &decodedFrame );
+
+ return data->duration();
+ }
+@@ -361,7 +361,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+ {
+ if( !decodedFrame )
+ {
+- decodedFrame = avcodec_alloc_frame();
++ decodedFrame = av_frame_alloc();
+ if( !decodedFrame )
+ {
+ warning() << "Unable to allocate enough memory to decode file.";
+@@ -369,7 +369,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+ break;
+ }
+ else
+- avcodec_get_frame_defaults( decodedFrame );
++ av_frame_unref( decodedFrame );
+ }
+
+ decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
+@@ -405,7 +405,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+
+ avcodec_close( pCodecCtx );
+ avformat_close_input( &pFormatCtx );
+- av_free( decodedFrame );
++ av_frame_free( &decodedFrame );
+
+ return data->duration();
+ }
+@@ -479,7 +479,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+ {
+ if( !decodedFrame )
+ {
+- decodedFrame = avcodec_alloc_frame();
++ decodedFrame = av_frame_alloc();
+ if( !decodedFrame )
+ {
+ warning() << "Unable to allocate enough memory to decode file.";
+@@ -487,7 +487,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+ break;
+ }
+ else
+- avcodec_get_frame_defaults( decodedFrame );
++ av_frame_unref( decodedFrame );
+ }
+
+ decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
+@@ -523,7 +523,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
+
+ avcodec_close( pCodecCtx );
+ av_close_input_file( pFormatCtx );
+- av_free( decodedFrame );
++ av_frame_free( &decodedFrame );
+
+ return data->duration();
+ }
diff --git a/multimedia/sound/amarok/pspec.xml b/multimedia/sound/amarok/pspec.xml
new file mode 100644
index 0000000000..435036061d
--- /dev/null
+++ b/multimedia/sound/amarok/pspec.xml
@@ -0,0 +1,144 @@
+
+
+
+
+ amarok
+ http://amarok.kde.org
+
+ PisiLinux Community
+ admins@pisilinux.org
+
+ GPLv2
+ amarok
+ app:gui
+ Amarok audio player
+ Amarok is a feature-rich audio player for the KDE desktop.
+ https://github.com/KDE/amarok/archive/0b2b243b2b70471c32d282157624379da5214051.zip
+
+ extra-cmake-modules
+ qt5-base-devel
+ qt5-svg-devel
+ qt5-script-devel
+ qt5-sql-mysql
+ qt5-sql-odbc
+ qt5-sql-postgresql
+ qt5-sql-sqlite
+ qt5-declarative-devel
+ qt5-webkit-devel
+ kcoreaddons-devel
+ solid-devel
+ kdelibs4-support-devel
+ kcodecs-devel
+ ki18n-devel
+ threadweaver-devel
+ plasma-framework-devel
+ kcmutils-devel
+ knewstuff-devel
+ ktexteditor-devel
+ kglobalaccel-devel
+ kio-devel
+ knotifyconfig-devel
+ karchive-devel
+ kdnssd-devel
+ kdesignerplugin
+ kdoctools-devel
+ kemoticons-devel
+ kitemmodels-devel
+ kinit-devel
+ kunitconversion-devel
+ taglib-devel
+ libqjson-devel
+ curl-devel
+ libmtp-devel
+ ffmpeg-devel
+ liblastfm-devel
+ qca2-qt5-devel
+ openssl-devel
+ libofa-devel
+ clamz
+ ifuse
+ loudmouth-devel
+ libgpod-devel
+ libmygpo-qt-devel
+ taglib-extras-devel
+ gdk-pixbuf-devel
+ gst-plugins-base-next-devel
+ gst-plugins-bad-next-devel
+ mariadb-lib
+ mariadb-client
+ mariadb-server
+
+
+ rb126682.patch
+
+
+
+
+ amarok
+
+ kio
+ ki18n
+ solid
+ ffmpeg
+ libgcc
+ libofa
+ taglib
+ kcodecs
+ kconfig
+ kxmlgui
+ qt5-svg
+ karchive
+ kcmutils
+ kservice
+ qt5-base
+ knewstuff
+ liblastfm
+ kguiaddons
+ kitemviews
+ qt5-phonon
+ qt5-script
+ kcompletion
+ kcoreaddons
+ kdbusaddons
+ kiconthemes
+ ktexteditor
+ mariadb-lib
+ kglobalaccel
+ ktextwidgets
+ threadweaver
+ kwindowsystem
+ taglib-extras
+ kconfigwidgets
+ knotifications
+ kwidgetsaddons
+ kdelibs4-support
+
+
+ /etc
+ /usr/bin
+ /usr/lib
+ /usr/share/amarok
+ /usr/share/appdata
+ /usr/share/applications/
+ /usr/share/config.kcfg
+ /usr/share/dbus-1/interfaces
+ /usr/share/doc
+ /usr/share/icons
+ /usr/share/kconf_update
+ /usr/share/knotifications5
+ /usr/share/kservices5
+ /usr/share/kservicetypes5
+ /usr/share/solid
+
+
+
+
+
+ 2017-01-07
+ 2.8.83
+ First release
+ PisiLinux Community
+ admins@pisilinux.org
+
+
+
diff --git a/multimedia/sound/amarok/translations.xml b/multimedia/sound/amarok/translations.xml
new file mode 100644
index 0000000000..08989ce808
--- /dev/null
+++ b/multimedia/sound/amarok/translations.xml
@@ -0,0 +1,16 @@
+
+
+
+ amarok
+ KDE için müzik çalıcısı
+ Amarok Audio-Player
+ Odtwarzacz muzyczny Amarok
+ Reproductor de música para KDE
+ Amarok Audio-speler
+ Amarok, pek çok yeni özelliklere sahip yeni nesil bir müzik çalıcısıdır
+ Lecteur audio riche en fonctionnalité pour le système KDE.
+ Amarok to bogaty w funkcje odtwarzacz audio dedykowany środowisku graficznemu KDE.
+ Amarok es un potente reproductor de música con una interfaz intuitiva
+ Amarok is een feature-rijke audio-speler voor het KDE-bureaublad.
+
+