dot

packages and services management
Log | Files | Refs | README

commit 923ad3a5a1ad4a945c8f0ff2e4b627a67322eb29
parent ca62f17f8dc1a97d8384b47023e077e5d4021b45
Author: Josuah <mail@josuah.net>
Date:   Fri,  9 Feb 2018 04:00:21 +0100

[ref] coding style applied on all recipes

Diffstat:
Mpack/9pfs/build | 2++
Mpack/b2sum/build | 5+++--
Mpack/busybox/build | 2+-
Mpack/cgo/build | 10+++++++---
Mpack/dash/build | 5+++--
Mpack/dwm/build | 6+++---
Mpack/ed/build | 6++++--
Mpack/enchive/build | 6++++--
Mpack/entr/build | 4++--
Mpack/farbfeld-resize/build | 4++--
Mpack/farbfeld/build | 4++--
Mpack/git/build | 10++++++++--
Mpack/liblz4/build | 6+++---
Mpack/libmusl/build | 16++++++++--------
Mpack/libopus/build | 11++++++-----
Mpack/libtox/build | 16++++++++++------
Mpack/libvpx/build | 12+++++++-----
Mpack/man-c++/build | 6+++---
Mpack/man-posix/build | 4++--
Mpack/mandoc/build | 2++
Mpack/mblaze/build | 9++++-----
Mpack/minilisp/build | 4++--
Mpack/mpop/build | 20+++++++++++---------
Mpack/msmtp/build | 19+++++++++----------
Mpack/mupdf/build | 9++++-----
Mpack/opentracker/build | 10++++++----
Mpack/plan9/build | 2++
Mpack/radare2/build | 9+++++++--
Mpack/reflex/build | 8++++++--
Mpack/retawq/build | 14+++++++++++---
Mpack/rsync/build | 7++++---
Mpack/runit/build | 10++++++----
Mpack/sfeed/build | 8++++----
Mpack/st/build | 10+++++-----
Mpack/sup/build | 7+++++--
Mpack/u9fs/build | 6++++--
36 files changed, 172 insertions(+), 117 deletions(-)

diff --git a/pack/9pfs/build b/pack/9pfs/build @@ -1,3 +1,5 @@ +#!/bin/sh -e + make mkdir -p "$OPT/bin" "$OPT/share/man/man1" diff --git a/pack/b2sum/build b/pack/b2sum/build @@ -1,5 +1,6 @@ #!/bin/sh -e cd b2sum -make NO_OPENMP=1 -make PREFIX="$OPT" install + +make NO_OPENMP='1' +make PREFIX="${OPT}" install diff --git a/pack/busybox/build b/pack/busybox/build @@ -1,3 +1,3 @@ #!/bin/sh -e -case ${uname} in (Linux) make=make ;; (*BSD) make=gmake ;; esac +case "${uname}" in (Linux) make='make' ;; (*BSD) make='gmake' ;; esac diff --git a/pack/cgo/build b/pack/cgo/build @@ -1,3 +1,7 @@ -make && make PREFIX="$OPT" install -mkdir -p "$OPT/share/man/man1" -cp cgo.1 "$OPT/share/man/man1" +#!/bin/sh -e + +make +make PREFIX="${OPT}" install + +mkdir -p "${OPT}/share/man/man1" +cp cgo.1 "${OPT}/share/man/man1" diff --git a/pack/dash/build b/pack/dash/build @@ -1,7 +1,8 @@ #!/bin/sh -e -./configure --prefix="$OPT" +./configure \ + --prefix="${OPT}" -case $(uname) in (*BSD) make=gmake ;; (*) make=make ;; esac +case "$(uname)" in (*BSD) make='gmake' ;; (*) make='make' ;; esac $make install diff --git a/pack/dwm/build b/pack/dwm/build @@ -1,6 +1,6 @@ #!/bin/sh -e -cp -f "$PKG"/*.h "$SRC" -cp -f "$PKG/config.mk" "$SRC/config.mk" +cp -f "${PKG}"/*.h "${SRC}" +cp -f "${PKG}/config.mk" "${SRC}/config.mk" -make PREFIX="$OPT" install +make PREFIX="${OPT}" install diff --git a/pack/ed/build b/pack/ed/build @@ -1,3 +1,5 @@ -mkdir -p "$OPT/bin" +#!/bin/sh -e -cc -o "$OPT/bin/ed" ed.c +mkdir -p "${OPT}/bin" + +cc -o "${OPT}/bin/ed" ed.c diff --git a/pack/enchive/build b/pack/enchive/build @@ -1,4 +1,6 @@ +#!/bin/sh -e + make -mkdir -p "$OPT/bin" -cp enchive "$OPT/bin" +mkdir -p "${OPT}/bin" +cp enchive "${OPT]/bin" diff --git a/pack/entr/build b/pack/entr/build @@ -1,5 +1,5 @@ -#!/bin/sh +#!/bin/sh -e ./configure -make PREFIX="$OPT" install +make PREFIX="${OPT}" install diff --git a/pack/farbfeld-resize/build b/pack/farbfeld-resize/build @@ -2,5 +2,5 @@ make -mkdir -p "$OPT/bin" -cp resize "$OPT/bin/resize" +mkdir -p "${OPT}/bin" +cp resize "${OPT}/bin/resize" diff --git a/pack/farbfeld/build b/pack/farbfeld/build @@ -1,5 +1,5 @@ #!/bin/sh -e -case $(uname) in (*BSD) make=gmake ;; (*) make=make ;; esac +case "$(uname)" in (*BSD) make='gmake' ;; (*) make='make' ;; esac -$make PREFIX=$OPT install +$make PREFIX="${OPT}" install diff --git a/pack/git/build b/pack/git/build @@ -1,3 +1,9 @@ -./configure --prefix="$OPT" --without-tcltk +#!/bin/sh -e -gmake install +./configure \ + --prefix="${OPT}" \ + --without-tcltk + +case "$(uname)" in (*BSD) make='gmake' ;; (*) make='make' ;; esac + +$make install diff --git a/pack/liblz4/build b/pack/liblz4/build @@ -1,5 +1,5 @@ -#!/bin/sh +#!/bin/sh -e -case $(uname) in (*BSD) gmake ;; (Linux) make ;; esac +case "$(uname)" in (*BSD) make='gmake' ;; (*) make='make' ;; esac -$make PREFIX="$OPT" install +$make PREFIX="${OPT}" install diff --git a/pack/libmusl/build b/pack/libmusl/build @@ -1,14 +1,14 @@ #!/bin/sh set -e -export LDFLAGS="$LDFLAGS -Wl,-rpath-link=$SYSROOT$OPT/lib" -export CC="$CC -L$SYSROOT/lib -isystem $SYSROOT/include" +export LDFLAGS="${LDFLAGS} -Wl,-rpath-link=$SYSROOT$OPT/lib" +export CC="$CC -L${SYS}/lib -isystem ${SYS}/include" -[ -n "$CROSS_COMPILE" ] && CONFFLAGS="$CONFFLAGS --host=$CROSS_COMPILE" +[ -n "${CROSS_COMPILE}" ] && CONFFLAGS="${CONFFLAGS} --host=${CROSS_COMPILE}" -./configure $CONFFLAGS \ - --prefix="$OPT" \ - --syslibdir="$OPT"/lib +./configure \ + --prefix="${OPT}" \ + --syslibdir="${OPT}"/lib -make $MAKEFLAGS -make $MAKEFLAGS DESTDIR="$DESTDIR" install +make +make PREFIX="${OPT}" install diff --git a/pack/libopus/build b/pack/libopus/build @@ -1,6 +1,7 @@ -./configure --prefix="$OPT" +#!/bin/sh -e -case "$(uname)" in -(*BSD ) gmake install ;; -(Linux) make install ;; -esac +./configure --prefix="${OPT}" + +case "$(uname)" in (*BSD) make='gmake' ;; (*) make=make ;; esac + +$make install diff --git a/pack/libtox/build b/pack/libtox/build @@ -1,9 +1,13 @@ -export OPUS_CFLAGS="-I$SYSROOT/include/opus" -export OPUS_LIBS="-L$SYSROOT/lib" -export VPX_CFLAGS="-I$SYSROOT/include" -export VPX_LIBS="-L$SYSROOT/lib" -export CFLAGS="-I$SYSROOT/include/opus" +#!/bin/sh -e -./configure --prefix="$OPT" --with-dependency-search="$SYSROOT" +export OPUS_CFLAGS="-I${SYS}/include/opus" +export OPUS_LIBS="-L${SYS}/lib" +export VPX_CFLAGS="-I${SYS}/include" +export VPX_LIBS="-L${SYS}/lib" +export CFLAGS="-I${SYS}/include/opus" + +./configure \ + --prefix="$OPT" \ + --with-dependency-search="${SYS}" make install diff --git a/pack/libvpx/build b/pack/libvpx/build @@ -1,6 +1,8 @@ -./configure --prefix="$OPT" +#!/bin/sh -e -case "$(uname)" in -(*BSD ) gmake install ;; -(Linux) make install ;; -esac +./configure \ + --prefix="$OPT" + +case "$(uname)" in (*BSD ) make='gmake' ;; (*) make='make' ;; esac + +$make install diff --git a/pack/man-c++/build b/pack/man-c++/build @@ -1,5 +1,5 @@ -#!/bin/sh +#!/bin/sh -e -mkdir -p "$OPT/share/man" +mkdir -p "${OPT}/share/man" -cp -r man3 "$OPT/share/man/man3" +cp -r man3 "${OPT}/share/man/man3" diff --git a/pack/man-posix/build b/pack/man-posix/build @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/sh -e -make prefix="$OPT" install +make prefix="${OPT}" install diff --git a/pack/mandoc/build b/pack/mandoc/build @@ -1,3 +1,5 @@ +#!/bin/sh -e + tee configure.local << EOF PREFIX="$OPT" BINDIR="$OPT/bin" diff --git a/pack/mblaze/build b/pack/mblaze/build @@ -1,6 +1,5 @@ -case "$(uname)" in -(Linux) make=make ;; -(*BSD ) make=gmake ;; -esac +#!/bin/sh -e -$make PREFIX="$OPT" install +case "$(uname)" in (*BSD) make='gmake' ;; (Linux) make='make' ;; esac + +$make PREFIX="${OPT}" install diff --git a/pack/minilisp/build b/pack/minilisp/build @@ -2,6 +2,6 @@ make -mkdir -p "$OPT/bin" +mkdir -p "${OPT}/bin" -cp minilisp "$OPT/bin" +cp minilisp "${OPT}/bin" diff --git a/pack/mpop/build b/pack/mpop/build @@ -1,12 +1,14 @@ -export libssl_CFLAGS=-I$SYSROOT/include -export libssl_LIBS=-L$SYSROOT/lib +#!/bin/sh -e -./configure \ - --prefix="$OPT" \ - --with-tls=openssl +export libssl_CFLAGS=-I${SYS}/include +export libssl_LIBS=-L${SYS}/lib -make \ - CFLAGS="$libssl_CFLAGS" \ - LDFLAGS="-L$SYSROOT/lib -lssl -lcrypto" \ +./configure \ + --prefix="${OPT}" \ + --with-tls='openssl' -make PREFIX="$OPT" install +make \ + CFLAGS="$libssl_CFLAGS" \ + LDFLAGS="-L${SYS}/lib -lssl -lcrypto" \ + +make PREFIX="${OPT}" install diff --git a/pack/msmtp/build b/pack/msmtp/build @@ -1,15 +1,14 @@ -export libssl_CFLAGS=-I$SYSROOT/include -export libssl_LIBS=-L$SYSROOT/lib +#!/bin/sh -e +export libssl_CFLAGS="-I${SYS}/include" +export libssl_LIBS="-L${SYS}/lib" -./configure \ - --prefix="$OPT" \ - --with-tls=openssl -make \ - CFLAGS="$libssl_CFLAGS" \ - LDFLAGS="-L$SYSROOT/lib -lssl -lcrypto" +./configure \ + --prefix="${OPT}" \ + --with-tls=openssl -make PREFIX="$OPT" install +make +make PREFIX="${OPT}" install -ln -s "$OPT/bin/msmtp" "$OPT/bin/sendmail" +ln -s "${OPT}/bin/msmtp" "${OPT}/bin/sendmail" diff --git a/pack/mupdf/build b/pack/mupdf/build @@ -1,6 +1,5 @@ -case $(uname) in -(Linux) MAKE=make ;; -(*BSD) MAKE=gmake ;; -esac +#!/bin/sh -e -$MAKE prefix="$OPT" install +case "$(uname)" in (*BSD) make='gmake' ;; (*) make='make' ;; esac + +$make prefix="${OPT}" install diff --git a/pack/opentracker/build b/pack/opentracker/build @@ -1,5 +1,7 @@ -make \ - LIBOWFAT_HEADERS="$SYSROOT/include" \ - LIBOWFAT_LIBRARY="$SYSROOT/lib" +#!/bin/sh -e -make PREFIX="$OPT" install +make \ + LIBOWFAT_HEADERS="${SYS}/include" \ + LIBOWFAT_LIBRARY="${SYS}/lib" + +make PREFIX="${OPT}" install diff --git a/pack/plan9/build b/pack/plan9/build @@ -1 +1,3 @@ +#!/bin/sh -e + ./INSTALL diff --git a/pack/radare2/build b/pack/radare2/build @@ -1,3 +1,8 @@ -./configure --prefix="$OPT" +#!/bin/sh -e -gmake install +./configure \ + --prefix="${OPT}" + +case "$(uname)" (*BSD) make='gmake' ;; (*) make='make' ;; esac + +$make install diff --git a/pack/reflex/build b/pack/reflex/build @@ -1,4 +1,8 @@ -./configure --prefix="$OPT" +#!/bin/sh -e + +./configure \ + --prefix="${OPT}" + make install -ln -s "$OPT/bin/reflex" "$OPT/bin/flex" +ln -s "${OPT}/bin/reflex" "${OPT}/bin/flex" diff --git a/pack/retawq/build b/pack/retawq/build @@ -1,5 +1,13 @@ -patch -p1 < "$PKG/resource.c.patch" -./configure --set-tls=2 --program-prefix="$OPT" --path-prefix="$OPT" -make LDFLAGS="-L$SYSROOT/lib" CFLAGS="-I$SYSROOT/include" +#!/bin/sh -e + +patch -p1 < "${PKG}/resource.c.patch" + +./configure \ + --set-tls=2 \ + --program-prefix="${OPT}" \ + --path-prefix="${OPT}" + +make + mkdir -p "$OPT/bin" cp retawq "$OPT/bin" diff --git a/pack/rsync/build b/pack/rsync/build @@ -1,5 +1,6 @@ -./configure --prefix="$OPT" \ - CFLAGS="-I$SYSROOT/include" \ - LDFLAGS="-L$SYSROOT/lib" +#!/bin/sh -e + +./configure \ + --prefix="${OPT}" make install diff --git a/pack/runit/build b/pack/runit/build @@ -1,3 +1,5 @@ +#!/bin/sh -e + if ! [ -d src ] then mv runit*/* . @@ -6,7 +8,7 @@ fi package/compile -mkdir -p "$OPT/share/man/man8" -cp man/* "$OPT/share/man/man8" -mkdir -p "$OPT/bin" -cp command/* "$OPT/bin" +mkdir -p "${OPT}/share/man/man8" +cp man/* "${OPT}/share/man/man8" +mkdir -p "${OPT}/bin" +cp command/* "${OPT}/bin" diff --git a/pack/sfeed/build b/pack/sfeed/build @@ -1,6 +1,6 @@ #!/bin/sh -e -cp "$PKG/sfeed_twtxt.c" "$SRC" -make MANPREFIX="$OPT/share/man" PREFIX="$OPT" install -make BIN=sfeed_twtxt -cp "$SRC/sfeed_twtxt" "$OPT/bin/sfeed_twtxt" +cp "${PKG}/sfeed_twtxt.c" "${SRC}" +make MANPREFIX="${OPT}/share/man" PREFIX="${OPT}" install +make BIN='sfeed_twtxt' +cp "${SRC}/sfeed_twtxt" "${OPT}/bin/sfeed_twtxt" diff --git a/pack/st/build b/pack/st/build @@ -1,9 +1,9 @@ #!/bin/sh -e -THEME=helios_dark +THEME='helios_dark' -cp "$PKG/config.h" config.h -cp "$PKG/config.mk" config.mk -cp "$PKG/$THEME.h" colors.h +cp "${PKG}/config.h" config.h +cp "${PKG}/config.mk" config.mk +cp "${PKG}/$THEME.h" colors.h -make PREFIX="$OPT" install +make PREFIX="${OPT}" install diff --git a/pack/sup/build b/pack/sup/build @@ -1,3 +1,6 @@ -case $(uname) in (Linux) make=make ;; (*BSD) make=gmake ;; (*) make=echo ;; esac +#!/bin/sh -e -$make && $make PREFIX="$OPT" install +case $(uname) in (*BSD) make=gmake ;; (*) make=make ;; esac + +$make +$make PREFIX="${OPT}" install diff --git a/pack/u9fs/build b/pack/u9fs/build @@ -1,2 +1,4 @@ -mkdir -p "$OPT/bin" -make DESTROOT="$OPT" install +#!/bin/sh -e + +mkdir -p "${OPT}/bin" +make DESTROOT="${OPT{" install