From e96f6ac6e912185a495a99af2b0d51b73bd1d044 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Jun 2011 23:02:42 +0000 Subject: Fri Jun 17 23:02:42 UTC 2011 --- testing/mesa/PKGBUILD | 24 ++++++++++----------- testing/mpd/PKGBUILD | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ testing/mpd/mpd | 36 +++++++++++++++++++++++++++++++ testing/mpd/mpd.install | 18 ++++++++++++++++ 4 files changed, 122 insertions(+), 12 deletions(-) create mode 100644 testing/mpd/PKGBUILD create mode 100755 testing/mpd/mpd create mode 100644 testing/mpd/mpd.install (limited to 'testing') diff --git a/testing/mesa/PKGBUILD b/testing/mesa/PKGBUILD index edd92d262..fafd58ac6 100644 --- a/testing/mesa/PKGBUILD +++ b/testing/mesa/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 127284 2011-06-12 11:12:35Z andyrtr $ +# $Id: PKGBUILD 127571 2011-06-16 16:50:52Z andyrtr $ # Maintainer: Jan de Groot # Maintainer: Andreas Radke @@ -9,9 +9,9 @@ _git=true #_git=false if [ "${_git}" = "true" ]; then - pkgver=7.10.99.git20110612 + pkgver=7.10.99.git20110616 else - pkgver=7.10.2 + pkgver=7.10.3 fi pkgrel=1 arch=('i686' 'x86_64') @@ -21,16 +21,16 @@ url="http://mesa3d.sourceforge.net" license=('custom') source=(LICENSE gnome-shell-shader-fix.patch nouveau-fix-header.patch) if [ "${_git}" = "true" ]; then - # mesa git shot from mastee (will become 7.11) branch - see for state: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a00dd974699e369b1eb292103fbde8bc6adfb87 - source=(${source[@]} 'ftp://ftp.archlinux.org/other/mesa/mesa-9a00dd974699e369b1eb292103fbde8bc6adfb87.tar.bz2') + # mesa git shot from mastee (will become 7.11) branch - see for state: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc8c4a3a7b92a1134cd3a9312063abba9e14b0fe + source=(${source[@]} 'ftp://ftp.archlinux.org/other/mesa/mesa-fc8c4a3a7b92a1134cd3a9312063abba9e14b0fe.tar.bz2') else - source=(${source[@]} "ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2" + source=(${source[@]} "ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.zip" ) fi md5sums=('5c65a0fe315dd347e09b1f2826a1df5a' '3ec78f340f9387abd7a37b195e764cbf' '67c87b77cc2236b52a3b47dad3fbb5d4' - '77b10baeba21268d2a65440f99f97c12') + 'f9cf11f9fd8f5d2092536fc48fad922f') build() { if [ "${_git}" = "true" ]; then @@ -64,13 +64,13 @@ if [ "${_git}" = "true" ]; then --enable-gles1 \ --enable-gles2 \ --enable-egl \ - --enable-texture-float + --enable-texture-float \ + --enable-shared-dricore + # --enable-gallium-svga \ - # --enable-texture-float (enable floating-point textures and renderbuffers) - http://www.phoronix.com/scan.php?page=news_item&px=OTMzMg - #The source code to implement ARB_texture_float extension is included and can be toggled on at compile time only by those who purchased a license from SGI, or are in a country where the patent does not apply. - - #--enable-shared-dricore - http://bugs.gentoo.org/show_bug.cgi?id=357177 + #--enable-shared-dricore - link DRI modules with shared core DRI routines[default=disabled] http://bugs.gentoo.org/show_bug.cgi?id=357177 + #--enable-shared-glapi EXPERIMENTAL. Enable shared glapi for OpenGL[default=no] else ./configure --prefix=/usr \ diff --git a/testing/mpd/PKGBUILD b/testing/mpd/PKGBUILD new file mode 100644 index 000000000..acdf209ef --- /dev/null +++ b/testing/mpd/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 127604 2011-06-16 17:50:00Z angvp $ +# Maintainer: Angel Velasquez +# Contributor: Andrea Scarpino +# Contributor: Damir Perisa +# Contributor: Ben + +pkgname=mpd +pkgver=0.16.3 +pkgrel=1 +pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files" +arch=('i686' 'x86_64') +license=('GPL') +url="http://mpd.wikia.com/wiki/Server" +depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2' + 'sqlite3' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag' + 'libpulse') +makedepends=('pkgconfig' 'doxygen') +install=${pkgname}.install +source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2" + 'mpd') +md5sums=('6e708c02b0e8c288aec855eecf441a5a' + 'e5669c2bff4031928531e52475addeb1') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-lastfm \ + --enable-jack \ + --enable-pulse \ + --enable-documentation \ + --disable-libwrap \ + --disable-cue \ + --disable-sidplay + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + # set ours dirs in mpd.conf file + sed -i 's|^music_directory.*$|#music_directory "path_to_your_music_collection"|1' doc/mpdconf.example + sed -i 's|playlist_directory.*$|playlist_directory "/var/lib/mpd/playlists"|1' doc/mpdconf.example + sed -i 's|db_file.*$|db_file "/var/lib/mpd/mpd.db"|1' doc/mpdconf.example + sed -i 's|log_file.*$|log_file "/var/log/mpd/mpd.log"|1' doc/mpdconf.example + sed -i 's|error_file.*$|error_file "/var/log/mpd/mpd.error"|1' doc/mpdconf.example + sed -i 's|#pid_file.*$|pid_file "/var/run/mpd/mpd.pid"|1' doc/mpdconf.example + sed -i 's|#state_file.*$|state_file "/var/lib/mpd/mpdstate"|1' doc/mpdconf.example + sed -i 's|#user.*$|user "mpd"|1' doc/mpdconf.example + + install -Dm644 doc/mpdconf.example ${pkgdir}/usr/share/mpd/mpd.conf.example + + install -Dm755 ${srcdir}/mpd ${pkgdir}/etc/rc.d/mpd + install -d ${pkgdir}/var/{lib/mpd/playlists,log/mpd} +} diff --git a/testing/mpd/mpd b/testing/mpd/mpd new file mode 100755 index 000000000..6134e2ed4 --- /dev/null +++ b/testing/mpd/mpd @@ -0,0 +1,36 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting Music Player Daemon" + [ ! -d /var/run/mpd ] && install -d -g 45 -o 45 /var/run/mpd + /usr/bin/mpd /etc/mpd.conf &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon mpd + stat_done + fi + ;; + stop) + stat_busy "Stopping Music Player Daemon" + /usr/bin/mpd --kill /etc/mpd.conf &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon mpd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/testing/mpd/mpd.install b/testing/mpd/mpd.install new file mode 100644 index 000000000..885505a07 --- /dev/null +++ b/testing/mpd/mpd.install @@ -0,0 +1,18 @@ +post_install() { + post_upgrade + echo "==> Create a configuration file /etc/mpd.conf before using MPD (example: /usr/share/mpd/mpd.conf.example)" +} + +post_upgrade() { + getent group "mpd" &>/dev/null || groupadd -r -g 45 mpd 1>/dev/null + getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" mpd 1>/dev/null + for dir in /var/{lib,log}/mpd; do + chown -R mpd:mpd "$dir" 1>/dev/null + done +} + +post_remove() { + getent passwd "mpd" &>/dev/null && userdel mpd 1>/dev/null + getent group "mpd" &>/dev/null && groupdel mpd 1>/dev/null + [ -f etc/mpd.conf ] && mv etc/mpd.conf etc/mpd.conf.pacsave 1>/dev/null +} -- cgit v1.2.3-54-g00ecf