1
0

soft package manager

This commit is contained in:
dtb
2023-11-25 01:16:47 -07:00
parent b3c760446f
commit cfa82df72b
8 changed files with 95 additions and 204 deletions

16
soft/android-udev-rules Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
NAME=android-udev-rules
VERSION=nightly
UPSTREAM=https://github.com/M0Rf30/android-udev-rules.git
UPSTREAM_TYPE=git
. soft
# rather than requiring user to be in `adbusers`, just use group wheel
sed -i .orig -e s.adbusers.wheel.g "$PREFIX"/src/android-udev-rules/51-android.rules
mkdir -p /etc/udev/rules.d
cp "$PREFIX"/src/android-udev-rules/51-android.rules /etc/udev/rules.d/51-android.rules
chmod a+r /etc/udev/rules.d/51-android.rules
soft_advise '#' udevadm control --reload-rules
soft_advice '#' dinitctl restart udevd

View File

@@ -0,0 +1,11 @@
#!/bin/sh
NAME=audacious-theme-sailor-moon-gang
VERSION=1.0.0
UPSTREAM=https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz
UPSTREAM_TYPE=https
. soft
mkdir -p "$PREFIX/share/audacious/Skins"
ln -s "$PREFIX/src/$NAME/Sailor_Moon_Gang.wsz" \
"$PREFIX/share/audacious/Skins/Sailor_Moon_Gang.wsz"

9
soft/bar Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
NAME=bar
VERSION=nightly
UPSTREAM=https://github.com/LemonBoy/bar.git
UPSTREAM_TYPE=git
. soft
$GMAKE -C "$PREFIX/src/$NAME" PREFIX="$PREFIX" install

18
soft/bspwm Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
NAME=bspwm
VERSION=nightly
UPSTREAM=https://github.com/baskerville/bspwm.git
UPSTREAM_TYPE=git
. soft
# depends on
# libx11-devel
# libxau-devel
# libxcb-devel
# libxinerama-devel
# xcb-util-devel
# xcb-util-keysyms-devel
# xcb-util-wm-devel
$GMAKE -C "$PREFIX/src/NAME" install

13
soft/cmatrix Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
NAME=cmatrix
VERSION=nightly
UPSTREAM=https://github.com/abishekvashok/cmatrix.git
UPSTREAM_TYPE=git
. soft
# depends on:
# ncurses-devel (optional if curses.h is present on system)
sh -c 'cd "$PREFIX/src/$NAME"; autoreconf -i && ./configure --prefix="$PREFIX"'
$GMAKE -C "$PREFIX/src/$NAME" install

8
soft/git-filter-repo Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
NAME=git-filter-repo
VERSION=nightly
UPSTREAM=https://github.com/newren/git-filter-repo.git
UPSTREAM_TYPE=git
ln -s "$PREFIX/src/$NAME/git-filter-repo" "$PREFIX/bin/git-filter-repo"

20
soft/soft Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -e
GMAKE=gmake
PREFIX=/usr/local
case "$UPSTREAM_TYPE" in
https) mkdir -p "$PREFIX/src/$NAME"
curl -O "$UPSTREAM" --output-dir "$PREFIX/src/$NAME" ;;
git) git pull "$UPSTREAM" "$PREFIX/src/$NAME" ;;
*) ! printf '%s: %s: %s: Unknown upstream type\n' \
soft "$NAME" "$UPSTREAM_TYPE" >&2 ;;
esac
soft_advise(){
printf "\
%s: %s: It is advised to run the following, or the system equivalent:
%s\n" soft "$NAME" "$*" >&2
}