You are not logged in.

#1 2014-03-31 04:06:30

whahn1983
Member
Registered: 2013-05-23
Posts: 59

wrapaur - A simple pacman and cower wrapper written in bash

I wrote a simple bash script to help with some of the repetitive tasks of building AUR packages with cower, especially when many dependencies are involved.  I also wanted to integrate some of the common pacman commands in the same program with cower.  I've been using this script locally for some time now and thought I would upload it to the AUR and share it with the community.  Feel free to leave comments/suggestions.  I know there are a lot of options out there for building and installing AUR packages so I hope this adds a simple option for those who  already enjoy cower and want to keep some control over AUR installs with some added convenience.

Usage: wrapaur [OPTION]... [PACKAGE]...
(for multiple packages pass option each time; e.g. -i package1 -i package2)
  -a install from aur
  -c clean pacman cache with pacman -Sc, optimize pacman database, and clear .wrapaur folder
  -e check for updates from official repositories and aur and print available updates or email results if email is present in .wrapaurrc (add to cron or systemd timer to have email updates for new packages)
      note: email must be properly configured on system
  -i install from official repositories
  -l list installed packages with package count
  -m update pacman mirrorlist wth reflector (default options: top 200 http servers sorted by download rate)
  -q query information on a specific package
  -r remove a package with pacman -Rsn (for other removal options use pacman)
  -s search official repositories and aur
  -u update official repositories and aur

https://aur.archlinux.org/packages/wrapaur/
https://github.com/whahn1983/wrapaur

Last edited by whahn1983 (2014-05-03 15:57:03)

Offline

#2 2014-03-31 08:05:25

fredbezies
Member
Registered: 2011-07-28
Posts: 367

Re: wrapaur - A simple pacman and cower wrapper written in bash

What's new with it ? Better than yaourt for example ? big_smile

Offline

#3 2014-03-31 08:10:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: wrapaur - A simple pacman and cower wrapper written in bash

Could you please host the script on github or somewhere that it is possible to read it before downloading? And then include the link on the AUR page and here?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-03-31 08:18:23

progandy
Member
Registered: 2012-05-17
Posts: 5,279

Re: wrapaur - A simple pacman and cower wrapper written in bash

jasonwryan wrote:

Could you please host the script on github or somewhere that it is possible to read it before downloading? And then include the link on the AUR page and here?

For something this small you can also use gist (with a username, not anomymous)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2014-03-31 12:38:07

whahn1983
Member
Registered: 2013-05-23
Posts: 59

Re: wrapaur - A simple pacman and cower wrapper written in bash

Sure.  I'll try and get it posted somewhere tonight.

To answer the yaourt question, I wanted something more simple than yaourt that gave a little more control with the AUR packages, which is why I was using cower.  After a while though going into each directory manually to makepkg gets old.  So this script just helps out with that.

Offline

#6 2014-03-31 18:07:39

whahn1983
Member
Registered: 2013-05-23
Posts: 59

Re: wrapaur - A simple pacman and cower wrapper written in bash

I created a git page and posted the source.  I will update the PKGBUILD later on to reflect the website.

https://github.com/whahn1983/wrapaur

Offline

#7 2014-04-07 04:52:04

whahn1983
Member
Registered: 2013-05-23
Posts: 59

Re: wrapaur - A simple pacman and cower wrapper written in bash

I just added a few more options.  I added an option to use reflector to update the pacman mirror list and another to query installed packages.  I'll update the first post to list all of the program options currently.

Offline

#8 2014-05-02 13:30:55

whahn1983
Member
Registered: 2013-05-23
Posts: 59

Re: wrapaur - A simple pacman and cower wrapper written in bash

So I don't know if anyone is following this program however, I wanted to announce some updates.  I added an option to check for updates and print available updates or email the results.  This could be set up cron for regular update notifications to email.  I also added a config file to store the target email address and some options.

Offline

#9 2014-06-21 08:59:22

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: wrapaur - A simple pacman and cower wrapper written in bash

@whahn1983

Thanks for wrapaur! What are the major differences in comparison to the widely used pacaur?

Offline

#10 2014-06-21 11:19:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: wrapaur - A simple pacman and cower wrapper written in bash

Holy case statement batman!

From lines 226 to 447, all that entire block of code does can be substituted with `country=$opt`.  And even that is not likely needed, just use $opt where you needed $country.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2014-06-22 01:43:39

whahn1983
Member
Registered: 2013-05-23
Posts: 59

Re: wrapaur - A simple pacman and cower wrapper written in bash

I recently added that code to provide a convenient selection menu since there are limited country choices.  That way the user does not have to go run a reflector command, find the appropriate country, then go use that as an input to my program.

Offline

Board footer

Powered by FluxBB