[Slackbuilds-users] Slackbuild helper script
    Ryan P.C. McQuen 
    ryan.q at linux.com
       
    Sat Feb 21 12:32:32 UTC 2015
    
    
  
I wrote a small shell function I use for non-SBo stuff (I am a big fan of
sbopkg), but there is no reason it could not be used for a local SBo
clone.  ;-)
## install packages from my unofficial github repo
my_repo_install() {
  ## set to wherever yours is
  MY_REPO=~/ryanpc-slackbuilds/unofficial
  ## just do one initial pull
  cd ${MY_REPO}/
  git pull
  ## begin the beguine
  for ITEM in "$@"; do
    MY_REPO_PKG=$ITEM
    ## check if it is already installed
    if [ -z "`find /var/log/packages/ -name ${MY_REPO_PKG}-*`" ]; then
      cd ${MY_REPO}/${MY_REPO_PKG}/
      . ${MY_REPO}/${MY_REPO_PKG}/${MY_REPO_PKG}.info
      ## no use trying to download if these vars are empty
      if [ "$DOWNLOAD" ] || [ "$DOWNLOAD_x86_64" ]; then
        if [ "$(uname -m)" = "x86_64" ] && [ "$DOWNLOAD_x86_64" ] && [
"$DOWNLOAD_x86_64" != "UNSUPPORTED" ] && [ "$DOWNLOAD_x86_64" != "UNTESTED"
]; then
          wget -N $DOWNLOAD_x86_64 -P ${MY_REPO}/${MY_REPO_PKG}/
        else
          wget -N $DOWNLOAD -P ${MY_REPO}/${MY_REPO_PKG}/
        fi
      fi
      ## finally run the build
      sh ${MY_REPO}/${MY_REPO_PKG}/${MY_REPO_PKG}.SlackBuild
      ls -t --color=never /tmp/${MY_REPO_PKG}-*_SBo.tgz | head -1 | xargs
-i upgradepkg --install-new {}
      cd
    fi
  done
}
On Sat, Feb 21, 2015, 12:36 AM Xavier Maillard <xavier at maillard.im> wrote:
> Hi,
>
> Enguerrand de Rochefort <slackbuilds at rochefort.de> writes:
>
> > Hi all
> >
> > I'm using Slackbuilds for a month or so by now, and I am pretty
> > impressed by how well they work. So I started to write a bash
> > script to simplify / automate the build & install process a bit.
>
> There is already something like that. Check sbopkg [1].
>
> Footnotes:
> [1]  http://sbopkg.org
>
> --
> Sent with my mu4e
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20150221/b6e9178b/attachment-0001.html>
    
    
More information about the SlackBuilds-users
mailing list