squidpm

the squid package manager
git clone git://squid-tech.com/squidpm.git
Log | Files | Refs | README | LICENSE

commit c519dc7242ba0c85fd061022da6c5815ab3b8426
parent 85e68a57ce714c14b90d48057bf8fbc3533cb1a4
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 18:49:53 -0500

Add package: dwm

Diffstat:
Apackages/dwm | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/packages/dwm b/packages/dwm @@ -0,0 +1,33 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://git.suckless.org/dwm + +# the name of this package +me=$(basename "$0") +mydir=$(dirname "$0") + +# create a repo dir for this package if it doesn't exist +mkdir -p $mydir/../repos/$me +cd $mydir/../repos/$me + +if [ $1 = "install" ]; then + # clone the repo + git clone $GITURL . + + # installation behavior for this package + sudo make clean install + echo "Note that additional config may be required to run dwm." + echo "See https://dwm.suckless.org/tutorial/" +elif [ $1 = "uninstall" ]; then + # uninstallation behavior for this package + + sudo make clean uninstall + + cd .. + rm -rf $me +elif [ $1 = "update" ]; then + # update behavior for this package + git pull + sudo make clean install +fi