summaryrefslogtreecommitdiff
path: root/community/mate-media/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mate-media/PKGBUILD')
-rw-r--r--community/mate-media/PKGBUILD75
1 files changed, 75 insertions, 0 deletions
diff --git a/community/mate-media/PKGBUILD b/community/mate-media/PKGBUILD
new file mode 100644
index 000000000..33c3510e2
--- /dev/null
+++ b/community/mate-media/PKGBUILD
@@ -0,0 +1,75 @@
+# $Id: PKGBUILD 104197 2014-01-16 16:38:43Z flexiondotorg $
+# Maintainer : Martin Wimpress <code@flexion.org>
+
+pkgbase=mate-media
+pkgname=("${pkgbase}-pulseaudio" "${pkgbase}-gstreamer")
+pkgver=1.6.1
+pkgrel=1
+url="http://mate-desktop.org"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('gstreamer0.10-base-plugins' 'gtk2' 'libcanberra-pulse' 'libunique'
+ 'mate-desktop' 'mate-window-manager' 'pulseaudio')
+makedepends=('mate-common' 'mate-doc-utils' 'mate-panel'
+ 'mate-settings-daemon-gstreamer' 'perl-xml-parser')
+options=('!emptydirs')
+source=("http://pub.mate-desktop.org/releases/1.6/${pkgbase}-${pkgver}.tar.xz")
+sha1sums=('39acbf670a384325b5f68487e62bb1bdddb7d68f')
+
+build() {
+ cd "${srcdir}"
+ cp -a ${pkgbase}-${pkgver}{,-gstreamer}
+
+ # build for pulseaudio
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ ./autogen.sh \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/${pkgbase} \
+ --localstatedir=/var \
+ --enable-pulseaudio \
+ --disable-gstmix \
+ --disable-gst-mixer-applet \
+ --disable-static \
+ --disable-scrollkeeper
+ make
+
+ # build for gstreamer
+ cd "${srcdir}/${pkgbase}-${pkgver}-gstreamer"
+ ./autogen.sh \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/${pkgbase} \
+ --localstatedir=/var \
+ --enable-gstmix \
+ --enable-gst-mixer-applet \
+ --enable-deprecated \
+ --disable-pulseaudio \
+ --disable-static \
+ --disable-scrollkeeper
+ make
+}
+
+package_mate-media-pulseaudio() {
+ groups=('mate-extra')
+ pkgdesc="MATE Media Tools (pulseaudio)"
+ depends=('libcanberra-pulse' 'libunique' 'mate-desktop' 'mate-window-manager'
+ 'pulseaudio')
+ conflicts=("${pkgbase}-gstreamer" 'mate-settings-daemon-gstreamer')
+ provides=("${pkgbase}")
+ replaces=("${pkgbase}")
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
+
+package_mate-media-gstreamer() {
+ pkgdesc="MATE Media Tools (GStreamer)"
+ depends=('gstreamer0.10-base-plugins' 'gtk2' 'libcanberra' 'mate-desktop'
+ 'mate-window-manager')
+ optdepends=('mate-panel: Volume control for the panel')
+ conflicts=("${pkgbase}-pulseaudio" 'mate-settings-daemon-pulseaudio')
+ provides=("${pkgbase}")
+ install=${pkgbase}-gstreamer.install
+ cd "${srcdir}/${pkgbase}-${pkgver}-gstreamer"
+ make DESTDIR="${pkgdir}" install
+}