aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-09-26 10:48:02 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-09-26 10:48:02 -0400
commit06fd4a903b11d06c66c51207883b0b8f1d4f2fb7 (patch)
tree1d20efad6386edf655b4afaa3d98cdc2ef451092 /build
parent03976ecac8e5b062936f692f45768da512d89421 (diff)
downloaddotfiles-06fd4a903b11d06c66c51207883b0b8f1d4f2fb7.tar.gz
dotfiles-06fd4a903b11d06c66c51207883b0b8f1d4f2fb7.tar.xz
Add muslbuild, a small set of shell scripts to statically build a few things against musl libc
Diffstat (limited to 'build')
-rwxr-xr-xbuild/musl53
-rwxr-xr-xbuild/polybar12
2 files changed, 0 insertions, 65 deletions
diff --git a/build/musl b/build/musl
deleted file mode 100755
index 13487e5..0000000
--- a/build/musl
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-set -e
-set -x
-relver="1.2.2"
-build_dir="/v/pub/musl"
-
-PREFIX="$HOME/musl"
-
-if ! [ -d "$build_dir" ] ; then
- mkdir -p "$build_dir"
-fi
-cd "$build_dir"
-
-sigLoc="https://musl.libc.org/releases/musl-${relver}.tar.gz.asc"
-sigFn="musl-${relver}.tar.gz.asc"
-arLoc="https://musl.libc.org/releases/musl-${relver}.tar.gz"
-arFn="musl-${relver}.tar.gz"
-
-curl https://musl.libc.org/musl.pub | gpg --import
-
-if ! [ -e "$arFn" ] ; then
- curl -o "$arFn" "$arLoc"
-fi
-
-if ! [ -e "$sigFn" ] ; then
- curl -o "$sigFn" "$sigLoc"
-fi
-
-_out="$(mktemp)";
-gpg --fingerprint --verify "$sigFn" >"$_out" 2>&1
-ret=$?
-
-if [ $ret -ne 0 ] ; then
- cat "$_out"
- rm "$_out"
- echo "Bad signature"
-fi
-
-if ! grep -q '^Primary key fingerprint: 8364 8929 0BB6 B70F 99FF DA05 56BC DB59 3020 450F' \
- < "$_out" ; then
- cat "$_out"
- rm "$_out"
- echo "Bad signature"
- exit 1
-fi
-rm "$_out" || printf ""
-
-tar xzvf "$arFn"
-cd "musl-${relver}"
-./configure --prefix="$PREFIX" --bindir="$HOME/bin" --disable-shared \
- --enable-static
-make
-make install -j$(nproc)
diff --git a/build/polybar b/build/polybar
deleted file mode 100755
index 45120e0..0000000
--- a/build/polybar
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-set -e
-
-# Based off of
-# https://github.com/polybar/polybar/wiki/Compiling
-
-git clean -fdx .
-mkdir build
-cd build
-cmake ..
-make -j$(nproc)
-sudo make install