#Packager: Shador pkgname=mpd pkgver=0.15.9 pkgrel=2ab #arch=x86_64 source=('http://downloads.sourceforge.net/project/musicpd/mpd/0.15.9/mpd-0.15.9.tar.bz2' 'mpd-initial.sh') sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("readme" "install" "copying" "upgrading" "authors" "news") url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (The Music Player Daemon)" "Music Player Daemon (MPD) allows remote access for playing music" "(MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing" "playlists. MPD is designed for integrating a computer into a stereo" "system that provides control for music playback over a local network." "It also makes a great desktop music player, especially if you are a" "console junkie, like frontend options, or restart X often." ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi threads="-j${threadcount}" cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver/ \ --enable-tcp \ --enable-ipv6 \ --enable-un \ --disable-cue \ --enable-oss \ --enable-alsa \ --enable-mvp \ --enable-oggflac \ --enable-flac \ --enable-aac \ --enable-audiofile \ --enable-mpc \ --enable-id3 \ --enable-lsr \ --enable-sqlite \ --enable-curl \ --enable-mms \ --enable-ffmpeg \ --enable-mad \ --enable-vorbis \ --enable-wavpack \ --enable-vorbis-encoder \ --enable-lame-encoder \ --enable-shout \ --enable-httpd-output \ --enable-lastfm \ --enable-jack \ --enable-iso9660 \ --enable-vorbis-encoder \ --enable-lame-encoder \ --enable-fifo \ --enable-pipe-output \ --enable-documentation \ --disable-pulse || return 1 make $threads || return 1 make install DESTDIR=$startdir/pkg || return 1 sed -e "s/@PKGVER@/$pkgver/" -i $startdir/src/mpd-initial.sh install -vD -m 755 $startdir/src/mpd-initial.sh $startdir/pkg/usr/bin/mpd-initial.sh }