squidpm

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

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

Add package: dmenu

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

diff --git a/packages/dmenu b/packages/dmenu @@ -0,0 +1,33 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://git.suckless.org/dmenu + +# the name of this package +me=$(basename "$0") +mydir=$(dirname "$0") + +if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + 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