summaryrefslogtreecommitdiff
path: root/community/cantata
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/cantata
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/cantata')
-rw-r--r--community/cantata/PKGBUILD41
-rw-r--r--community/cantata/cantata.install12
2 files changed, 53 insertions, 0 deletions
diff --git a/community/cantata/PKGBUILD b/community/cantata/PKGBUILD
new file mode 100644
index 000000000..fda9f5a38
--- /dev/null
+++ b/community/cantata/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 94869 2013-08-01 06:54:42Z bpiotrowski $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Mcder3 <mcder3[at]gmail[dot]com>
+# Contributor: MisterFred <mister.fred[at]free[dot]fr>
+
+pkgname=cantata
+pkgver=1.0.3
+pkgdesc="A KDE client for the music player daemon (MPD)"
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://kde-apps.org/content/show.php/Cantata?content=147733"
+license=('GPL')
+depends=('kdebase-runtime' 'taglib-extras' 'mpg123' 'libmtp' 'libcddb' 'libmusicbrainz5')
+makedepends=('cmake' 'automoc4')
+install="$pkgname.install"
+source=("http://cantata.googlecode.com/files/$pkgname-$pkgver.tar.bz2")
+md5sums=('fd942d25127a7936efaf1fe887d66189')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's/AVCODEC_MAX_AUDIO_FRAME_SIZE/192000/' replaygain/ffmpeginput.cpp
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir build
+
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_PHONON=ON
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" PREFIX="/usr" install
+}
diff --git a/community/cantata/cantata.install b/community/cantata/cantata.install
new file mode 100644
index 000000000..5495fb1b5
--- /dev/null
+++ b/community/cantata/cantata.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}