dot

packages and services management
Log | Files | Refs | README

commit 4cd7099802dc6b94d5cd8e1f32c3d44b237b0b6b
parent 4b01b28146c2b9e4b077b8a9692eee491d043dd2
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri,  2 Mar 2018 16:32:49 +0100

cmus music player ^_^

Diffstat:
M.bashrc | 2+-
Mbin/mread | 2+-
Mbin/pack | 2+-
Mbin/xdg-open | 2+-
Apack/cmus/build | 12++++++++++++
Apack/cmus/tar | 1+
Apack/libalsa/tar | 1+
Mpack/libav/build | 4++--
Apack/libogg/build | 2++
Mpack/opus-tools/build | 2+-
Apack/tnftp/build | 2++
Apack/tnftp/tar | 1+
12 files changed, 26 insertions(+), 7 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -1,4 +1,4 @@ -export TERM=vt220 +export TERM=screen export PS1='$([ "$?" -gt 0 ] && printf "\033[31;1mx\033[m\n\r")' export PS1="$PS1$(printf '\033]0;%s\a' '$PWD') diff --git a/bin/mread b/bin/mread @@ -1,5 +1,5 @@ #!/bin/sh -e -mlist "$HOME/var/mail/INBOX" | msort -dr | mseq -S +mlist "$HOME/var/mail/${1-INBOX}" | msort -dr | mseq -S mless diff --git a/bin/pack b/bin/pack @@ -17,7 +17,7 @@ case "$1" in (*.txz|*.tar.xz) xz -d - ;; esac | tar -xf - -C "$SRC" || rmdir "$SRC" - find "$SRC" -mindepth 2 -maxdepth 2 -exec mv {} "$SRC" + + find "$SRC" -mindepth 2 -maxdepth 2 -exec mv {} "$SRC" \; rmdir "$SRC"/* 2>/dev/null || true ;; (git) diff --git a/bin/xdg-open b/bin/xdg-open @@ -216,7 +216,7 @@ esac find "$1" -type f | sort | while IFS='' read -r song do printf '%s\n' "$song" - avplay "$song" + "$0" "$song" done exit ;; diff --git a/pack/cmus/build b/pack/cmus/build @@ -0,0 +1,12 @@ +#!/bin/sh -ex + +sed -r 's:"%s/autosave(\.tmp)?":"/dev/null":' options.c > options.c.sed +mv options.c.sed options.c + +./configure \ + prefix="$OPT" \ + PKG_CONFIG="" \ + CFLAGS="-I'$PACKROOT/include'" \ + LDFLAGS="-L'$PACKROOT/lib' -lterminfo" + +make install diff --git a/pack/cmus/tar b/pack/cmus/tar @@ -0,0 +1 @@ +https://github.com/cmus/cmus/archive/v2.7.1.tar.gz diff --git a/pack/libalsa/tar b/pack/libalsa/tar @@ -0,0 +1 @@ +ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.5.tar.bz2 diff --git a/pack/libav/build b/pack/libav/build @@ -1,5 +1,5 @@ #!/bin/sh -ex -./configure --prefix="$OPT" +./configure --prefix="$OPT" --enable-avplay -make +make install diff --git a/pack/libogg/build b/pack/libogg/build @@ -0,0 +1 @@ +../build/autotools+ \ No newline at end of file diff --git a/pack/opus-tools/build b/pack/opus-tools/build @@ -14,4 +14,4 @@ export FLAC_CFLAGS="-I'$PACKROOT/include'" --with-opus="$PACKROOT" \ --prefix="$OPT" -exec "$BUILD/gmake" +exec "$PACK/build/gmake" diff --git a/pack/tnftp/build b/pack/tnftp/build @@ -0,0 +1 @@ +../build/autotools+ \ No newline at end of file diff --git a/pack/tnftp/tar b/pack/tnftp/tar @@ -0,0 +1 @@ +ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftp-20151004.tar.gz