From 42803e8f96effd00962c4c70d4854bf642c89beb Mon Sep 17 00:00:00 2001 From: totte Date: Sun, 13 Oct 2013 08:08:30 +0200 Subject: [PATCH] Add mpd, mpc, cantata and tmux --- cantata/PKGBUILD | 39 +++++++++++++++++++++++++ mpc/PKGBUILD | 36 +++++++++++++++++++++++ mpd/PKGBUILD | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ mpd/install | 11 +++++++ mpd/rc.d | 25 ++++++++++++++++ mpd/tmpfiles.d | 1 + tmux/PKGBUILD | 30 ++++++++++++++++++++ 7 files changed, 216 insertions(+) create mode 100644 cantata/PKGBUILD create mode 100644 mpc/PKGBUILD create mode 100644 mpd/PKGBUILD create mode 100644 mpd/install create mode 100755 mpd/rc.d create mode 100644 mpd/tmpfiles.d create mode 100644 tmux/PKGBUILD diff --git a/cantata/PKGBUILD b/cantata/PKGBUILD new file mode 100644 index 000000000..a0ff0729d --- /dev/null +++ b/cantata/PKGBUILD @@ -0,0 +1,39 @@ +# +# Apps packages for Chakra, part of www.chakra-project.org +# +# Maintainer: H W Tovetjärn (totte) +# Contributors: (Mcder3) +# (SteveK) + +pkgname=cantata +pkgver=1.1.3 +pkgdesc="Cantata is a client for Music Player Daemon (MPD)" +pkgrel=1 +arch=(x86_64) +url="http://kde-apps.org/content/show.php/Cantata?content=147733" +license=(GPL) +screenshot='http://kde-apps.org/CONTENT/content-pre1/147733-1.png' +makedepends=('cmake' 'automoc4') +depends=('kdelibs') +optdepends=('taglib: tag edit dialog and UMS device support' + 'libmtp: MTP device support' + 'ffmpeg: ReplayGain detection' + 'mpg123: ReplayGain detection' + 'perl-uri: Dynamic playlist support' + 'cdparanoia: Read/rip Audio CDs' + 'libcddb: Audio CD support' + 'libmusicbrainz: Audio CD support') +source=(http://cantata.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2) +sha512sums=('22691c1ba9e0f94200f6cdb849be726a') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + mkdir build && cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DENABLE_HTTP_STREAM_PLAYBACK=ON -DENABLE_REMOTE_DEVICES=ON + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + make DESTDIR=${pkgdir} install +} diff --git a/mpc/PKGBUILD b/mpc/PKGBUILD new file mode 100644 index 000000000..0144f1b22 --- /dev/null +++ b/mpc/PKGBUILD @@ -0,0 +1,36 @@ +# +# Apps packages for Chakra, part of www.chakra-project.org +# +# Maintainer: H W Tovetjärn (totte) +# Contributors: (SteveK) +# Benjamin Mtz (cruznick) +# Gaetan Bisson +# Angel Velasquez +# Andrea Scarpino +# Alexander Fehr +# Link Dupont + +pkgname=mpc +pkgver=0.22 +pkgrel=1 +pkgdesc="Minimalist command line interface to MPD" +arch=('i686' 'x86_64') +url="http://mpd.wikia.com/wiki/Client:Mpc" +license=('GPL2') +depends=('libmpdclient') +options=('!emptydirs') +source=(http://downloads.sourceforge.net/musicpd/${pkgname}-$pkgver.tar.bz2) +sha512sums=('6a84bba413084c9ef453f4ba8d252ef6') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + # Install bash completion file + install -D -m644 doc/mpc-completion.bash "$pkgdir/etc/bash_completion.d/mpc" +} diff --git a/mpd/PKGBUILD b/mpd/PKGBUILD new file mode 100644 index 000000000..389a2f6b0 --- /dev/null +++ b/mpd/PKGBUILD @@ -0,0 +1,74 @@ +# +# Apps packages for Chakra, part of www.chakra-project.org +# +# Maintainer: H W Tovetjärn (totte) +# Contributors: (SteveK) +# Gaetan Bisson +# Angel Velasquez +# Andrea Scarpino +# Damir Perisa +# Ben + +pkgname=mpd +pkgver=0.17.3 +pkgrel=1 +pkgdesc='Flexible, powerful, server-side application for playing music' +url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki' +license=('GPL') +arch=('i686' 'x86_64') +depends=('audiofile' + 'avahi' + 'curl' + 'faad2' + 'ffmpeg' + 'jack' + 'libao' + 'libid3tag' + 'libmad' + 'libmms' + 'libmodplug' + 'libmpcdec' + 'libpulse' + 'libshout' + 'sqlite3' + 'wavpack') +makedepends=('doxygen') +source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2" + 'tmpfiles.d' + 'rc.d') +sha512sums=('f684d73a7517371a4461afdb2439f9533b51a49d' + 'f4d5922abb69abb739542d8e93f4dfd748acdad7' + '3470d489565f0ed479f1665dd2876f66acb5a585') + +backup=('etc/mpd.conf') +install=install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-lastfm \ + --enable-jack \ + --enable-pulse \ + --disable-sidplay \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ + --disable-libwrap + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + sed \ + -e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \ + -e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \ + -e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \ + -e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \ + -e '/^#user/c user "mpd"' \ + -i doc/mpdconf.example + install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/mpd + install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists + install -Dm644 doc/mpdconf.example "${pkgdir}"/etc/mpd.conf + install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf +} diff --git a/mpd/install b/mpd/install new file mode 100644 index 000000000..ffe2f39db --- /dev/null +++ b/mpd/install @@ -0,0 +1,11 @@ +post_install() { + getent group mpd &>/dev/null || groupadd -r -g 45 mpd >/dev/null + getent passwd mpd &>/dev/null || useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/false -G audio mpd >/dev/null + usr/bin/systemd-tmpfiles --create mpd.conf || true +} + +post_remove() { + getent passwd mpd &>/dev/null && userdel mpd >/dev/null + getent group mpd &>/dev/null && groupdel mpd >/dev/null + true +} diff --git a/mpd/rc.d b/mpd/rc.d new file mode 100755 index 000000000..cda4db02b --- /dev/null +++ b/mpd/rc.d @@ -0,0 +1,25 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy 'Starting Music Player Daemon' + /usr/bin/mpd /etc/mpd.conf &> /dev/null && + { add_daemon mpd; stat_done; } || stat_fail + ;; + stop) + stat_busy 'Stopping Music Player Daemon' + /usr/bin/mpd --kill /etc/mpd.conf &> /dev/null && + { rm_daemon mpd; stat_done; } || stat_fail + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/mpd/tmpfiles.d b/mpd/tmpfiles.d new file mode 100644 index 000000000..41c4e743a --- /dev/null +++ b/mpd/tmpfiles.d @@ -0,0 +1 @@ +d /run/mpd 0755 mpd mpd diff --git a/tmux/PKGBUILD b/tmux/PKGBUILD new file mode 100644 index 000000000..177ce9f0d --- /dev/null +++ b/tmux/PKGBUILD @@ -0,0 +1,30 @@ +# +# Apps packages for Chakra, part of www.chakra-project.org +# +# Maintainer: H W Tovetjärn (totte) +# Contributors: M Cigorraga (msx) +# (george) +# (mornik) + +pkgname=tmux +pkgver=1.8 +pkgrel=1 +pkgdesc='A terminal multiplexer, intended as an alternative to GNU screen' +arch=('x86_64') +url='http://sourceforge.net/projects/tmux/' +screenshot='http://tmux.sourceforge.net/tmux3.png' +license=('BSD') +depends=('ncurses' 'libevent') +source=("http://download.sourceforge.net/tmux/${pkgname}-${pkgver}.tar.gz") +sha512sums=('b9477de2fe660244cbc6e6d7e668ea0e') + +build() { + cd "${pkgname}-${pkgver}" + ./configure --prefix=/usr + make +} + +package() { + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +}