summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-09-04 20:18:37 +0200
committerErich Eckner <git@eckner.net>2016-09-04 20:18:37 +0200
commit07b40f100b44d1eb13f39f7cee9328132468e899 (patch)
treec592a573fff9469373f2743a5421128bf1fcbe6e
parenteeaa93def19eca8f30b2314c4c8b7ff1a3e82cff (diff)
downloadarchlinuxewe-07b40f100b44d1eb13f39f7cee9328132468e899.tar.xz
moc neu
-rw-r--r--moc/PKGBUILD47
-rw-r--r--moc/disable-sort.patch18
2 files changed, 65 insertions, 0 deletions
diff --git a/moc/PKGBUILD b/moc/PKGBUILD
new file mode 100644
index 000000000..9e2845afa
--- /dev/null
+++ b/moc/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=moc
+pkgver=2.5.1
+pkgrel=1
+epoch=1
+pkgdesc="An ncurses console audio player designed to be powerful and easy to use"
+arch=('i686' 'x86_64')
+url="http://moc.daper.net/"
+license=('GPL')
+depends=('libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file')
+makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
+optdepends=('speex: for using the speex plugin'
+ 'ffmpeg: for using the ffmpeg plugin'
+ 'taglib: for using the musepack plugin'
+ 'libmpcdec: for using the musepack plugin'
+ 'wavpack: for using the wavpack plugin'
+ 'faad2: for using the aac plugin'
+ 'libmodplug: for using the modplug plugin')
+source=(http://ftp.daper.net/pub/soft/moc/stable/${pkgname}-${pkgver}.tar.bz2{,.sig}
+ disable-sort.patch)
+sha512sums=('9e22ce72a96cb6e5e948af509c8b7528155fe50e8b5130d78363b6cd57f731f8847bd770cd2c2363a7b9ed70a16b55c7fc1672b2b981ae207c1abd35c2acc301'
+ 'SKIP'
+ '7a760eebf22d84f1ac21e3b429c10f7fb77bc8c7642adb57c57c1b6dfb9d2fa464398475778813a803738ec7a6ffee2c3da857bd36a6b89eaf3345ae419dc7ab')
+validpgpkeys=('59359B80406D9E73E80599BEF3121E4F2885A7AA')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p0 -i ../disable-sort.patch
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./configure --prefix=/usr --without-rcc \
+ --with-oss --with-alsa --with-jack --with-aac --with-mp3 \
+ --with-musepack --with-vorbis --with-flac --with-wavpack \
+ --with-sndfile --with-modplug --with-ffmpeg --with-speex \
+ --with-samplerate --with-curl --disable-cache --disable-debug
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/moc/disable-sort.patch b/moc/disable-sort.patch
new file mode 100644
index 000000000..2d7dfd29a
--- /dev/null
+++ b/moc/disable-sort.patch
@@ -0,0 +1,18 @@
+--- interface.c 2016-04-24 06:23:30.000000000 +0200
++++ interface.c 2016-09-04 20:09:46.046376708 +0200
+@@ -3788,7 +3788,6 @@
+
+ if (recv_server_plist(&clients_plist)) {
+ add_recursively (&new, args);
+- plist_sort_fname (&new);
+
+ send_int_to_srv (CMD_LOCK);
+
+@@ -3812,7 +3811,6 @@
+ create_file_name (PLAYLIST_FILE),
+ cwd, 1);
+ add_recursively (&new, args);
+- plist_sort_fname (&new);
+
+ send_int_to_srv (CMD_LOCK);
+ plist_remove_common_items (&new, &saved_plist);