squidpm

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

commit c0a31365fbfbd405a4a899d4a36fbe0040897a64
parent 990d9634a1278b40ca5b3c12583f04d06a5b22f4
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 19:40:27 -0500

Add package: quark

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

diff --git a/packages/quark b/packages/quark @@ -0,0 +1,32 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://git.suckless.org/quark + +# 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 clean install +elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me + # uninstallation behavior for this package + + sudo make clean uninstall + + cd .. + rm -rf $me +elif [ $1 = "update" ]; then + cd $mydir/../repos/$me + # update behavior for this package + git pull + sudo make clean install +fi