summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e77a67e2d85
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+
+pkgname=pantheon-music-git
+pkgver=r2949.5385ace5
+pkgrel=1
+pkgdesc='The Pantheon Music Player'
+arch=('i686' 'x86_64')
+url='https://github.com/elementary/music'
+license=('GPL3')
+depends=('cairo' 'gdk-pixbuf2' 'glib2' 'glibc' 'gst-plugins-base-libs'
+ 'gstreamer' 'gtk3' 'json-glib' 'libaccounts-glib' 'libgda' 'libgee'
+ 'libgpod' 'libgsignon-glib' 'libpeas' 'libsoup' 'pango' 'taglib'
+ 'zeitgeist'
+ 'libgranite.so')
+makedepends=('cmake' 'git' 'gobject-introspection' 'granite-git' 'intltool'
+ 'vala')
+optdepends=('gst-plugins-base: "Base" plugin libraries'
+ 'gst-plugins-good: "Good" plugin libraries'
+ 'gst-plugins-bad: "Bad" plugin libraries'
+ 'gst-plugins-ugly: "Ugly" plugin libraries'
+ 'gst-libav: Libav plugin')
+provides=('pantheon-music')
+conflicts=('noise' 'noise-player' 'pantheon-music')
+replaces=('noise-player-bzr')
+source=('pantheon-music::git+https://github.com/elementary/music.git'
+ 'mesa-demos-conflict.patch'
+ 'noise-install-dirs.patch')
+sha256sums=('SKIP'
+ '9135fe677b0d61778a624ba211b545eb861468b500cfd161469aa28139ab1296'
+ 'd0ebc710a742d942e04a8df61d91dd75ae4b2aeafe7fece08f1fbc90c507f1df')
+
+pkgver() {
+ cd pantheon-music
+
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd pantheon-music
+
+ patch -Np1 -i ../mesa-demos-conflict.patch
+ patch -Np1 -i ../noise-install-dirs.patch
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+}
+
+build() {
+ cd pantheon-music/build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+ -DGSETTINGS_COMPILE='FALSE'
+ make -j1
+}
+
+package() {
+ cd pantheon-music/build
+
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et: