squidpm

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

commit 42ee71cd627119b0843b0308a4178f706d671d24
parent c519dc7242ba0c85fd061022da6c5815ab3b8426
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 19:11:16 -0500

Add package: sent

Diffstat:
Apackages/farbfeld | 31+++++++++++++++++++++++++++++++
Apackages/sent | 37+++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/packages/farbfeld b/packages/farbfeld @@ -0,0 +1,31 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://git.suckless.org/farbfeld + +# 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 +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 diff --git a/packages/sent b/packages/sent @@ -0,0 +1,37 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://git.suckless.org/sent + +# 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 + # check dependencies + squidpm check farbfeld + if [ $? -eq 0 ]; then + echo "Installing dependency: farbfeld" + squidpm install farbfeld + fi + # clone the repo + git clone $GITURL . + + # installation behavior for this package + sudo make clean install +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