mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 06:57:16 +08:00
Add mpd, mpc, cantata and tmux
This commit is contained in:
parent
5a76312395
commit
42803e8f96
39
cantata/PKGBUILD
Normal file
39
cantata/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# Apps packages for Chakra, part of www.chakra-project.org
|
||||
#
|
||||
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Contributors: (Mcder3) <mcder3@gmail.com>
|
||||
# (SteveK) <stevekej@gmail.com>
|
||||
|
||||
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
|
||||
}
|
36
mpc/PKGBUILD
Normal file
36
mpc/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# Apps packages for Chakra, part of www.chakra-project.org
|
||||
#
|
||||
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Contributors: (SteveK) <stevekej@gmail.com>
|
||||
# Benjamin Mtz (cruznick) <cruznick at archlinux dot us>
|
||||
# Gaetan Bisson <bisson@archlinux.org>
|
||||
# Angel Velasquez <angvp@archlinux.org>
|
||||
# Andrea Scarpino <andrea@archlinux.org>
|
||||
# Alexander Fehr <pizzapunk gmail com>
|
||||
# Link Dupont <link@subpop.net>
|
||||
|
||||
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"
|
||||
}
|
74
mpd/PKGBUILD
Normal file
74
mpd/PKGBUILD
Normal file
@ -0,0 +1,74 @@
|
||||
#
|
||||
# Apps packages for Chakra, part of www.chakra-project.org
|
||||
#
|
||||
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Contributors: (SteveK) <stevekej@gmail.com>
|
||||
# Gaetan Bisson <bisson@archlinux.org>
|
||||
# Angel Velasquez <angvp@archlinux.org>
|
||||
# Andrea Scarpino <andrea@archlinux.org>
|
||||
# Damir Perisa <damir.perisa@bluewin.ch>
|
||||
# Ben <ben@benmazer.net>
|
||||
|
||||
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
|
||||
}
|
11
mpd/install
Normal file
11
mpd/install
Normal file
@ -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
|
||||
}
|
25
mpd/rc.d
Executable file
25
mpd/rc.d
Executable file
@ -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
|
1
mpd/tmpfiles.d
Normal file
1
mpd/tmpfiles.d
Normal file
@ -0,0 +1 @@
|
||||
d /run/mpd 0755 mpd mpd
|
30
tmux/PKGBUILD
Normal file
30
tmux/PKGBUILD
Normal file
@ -0,0 +1,30 @@
|
||||
#
|
||||
# Apps packages for Chakra, part of www.chakra-project.org
|
||||
#
|
||||
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Contributors: M Cigorraga (msx) <martincigorraga@gmail.com>
|
||||
# (george) <rpubaddr0@gmail.com>
|
||||
# (mornik) <mornik@gmail.com>
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user