squidpm

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

commit bb0f8710f436b040db3c52e98e76a26b23bcf026
parent 0837ba828e75912423648c28e24e4129ae10c939
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 19:49:27 -0500

Add package: neofetch

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

diff --git a/packages/neofetch b/packages/neofetch @@ -0,0 +1,32 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://github.com/dylanaraps/neofetch + +# the name of this package +me=$(basename "$0") +mydir=$(dirname "$0") + +if [ $1 = "install" ]; then + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + + # clone the repo + git clone $GITURL . + + # installation behavior for this package + sudo make install +elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me + # uninstallation behavior for this package + + sudo make uninstall + + cd .. + rm -rf $me +elif [ $1 = "update" ]; then + cd $mydir/../repos/$me + # update behavior for this package + git pull + sudo make install +fi