Jump to content

Archlinux -- Easy way to download AUR archives


securitybreach

Recommended Posts

securitybreach

I just found this yaourt switch while reading the man page:

-G, --getpkgbuild

Get PKGBUILD for ABS or AUR.

 

╔═ comhack@Cerberus 09:14 AM

╚═══ ~-> yaourt -G iron-bin

==> Download iron-bin sources

x LICENSE

x iron.png

x iron.sh

x PKGBUILD

x iron-bin.install

x iron.desktop

 

╔═ comhack@Cerberus 09:15 AM

╚═══ ~-> ls iron-bin/

iron-bin.install iron.desktop iron.png iron.sh LICENSE PKGBUILD

 

I cannot believe that I have been manually downloading the files via https://aur.archlinux.org/ to edit PKGBUILDS and such.

Link to comment
Share on other sites

securitybreach
$ yaourt -G wmcore
==> Download wmcore sources
x PKGBUILD

 

Neat trick but why have you got more stuff when you use it ??

Some packages require more packages than others. You think that is something, see what the catalyst driver provides:

╔═ comhack@Cerberus 11:46 AM 
╚═══ ~-> yaourt -G catalyst-total
==> Download catalyst-total sources
x PKGBUILD
x lib32-catalyst.sh
x catalyst.sh
x amdcccle.desktop
x atieventsd.sh
x hook-fglrx
x catalyst_build_module
x ati_make.sh
x makefile_compat.patch
x 3.2.8.patch
x catalyst-total.install

 

Link to comment
Share on other sites

Thanks :"> I really must try and wait a bit before I ask dumb questions. I found out the answer a few minutes after posting. :">

 

[bloodaxe@longship ~]$ yaourt -G wmcpu
==> Download wmcpu sources
x makefile.patch
x PKGBUILD
[bloodaxe@longship ~]$ w.g.e.t http://www.dockapps.org/download.php/id/673/wmcpu-1.4.tar.gz
--2012-03-03 17:41:38--  http://www.dockapps.org/download.php/id/673/wmcpu-1.4.tar.gz
Resolving www.dockapps.org... 82.98.86.163
Connecting to www.dockapps.org|82.98.86.163|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `wmcpu-1.4.tar.gz'

    [  <=>                                  ] 35,802       127K/s   in 0.3s    

2012-03-03 17:41:39 (127 KB/s) - `wmcpu-1.4.tar.gz' saved [35802]

[bloodaxe@longship ~]$ cd wmcpu/
[bloodaxe@longship wmcpu]$ md5sum wmcpu-1.4.tar.gz
4c789ee361f0447c70ba28efda1699fa  wmcpu-1.4.tar.gz
[bloodaxe@longship wmcpu]$ makepkg
==> Making package: wmcpu 1.4-1 (Sat Mar  3 17:46:02 GMT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found wmcpu-1.4.tar.gz
  -> Found makefile.patch
==> Validating source files with md5sums...
    wmcpu-1.4.tar.gz ... Passed
    makefile.patch ... Passed
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
/home/bloodaxe/wmcpu/PKGBUILD: line 18: cd: /home/bloodaxe/wmcpu/src/wmcpu-1.4:No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

 

Is my abort caused by me not being in root.?? I did not want to try befote asking as I do not want to bork me new install just yet :rolleyes:

 

Looks like I got me answer

 

# makepkg
==> ERROR: Running makepkg as root is a BAD idea and can cause permanent,
catastrophic damage to your system. If you wish to run as root, please
use the --asroot option.

 

naughty naughty barbarian :hysterical:

 

Hmm the source address is a dead link. :">

 

However I have another idea. :whistling:

Edited by abarbarian
Link to comment
Share on other sites

securitybreach

You have to extract the archive as you cannot run makepkg against am archive, only on an PKGBUILD.

Link to comment
Share on other sites

securitybreach

Also, that file wouldn't work as you cannot run makepkg against the source file, only against a PKGBUILD which fetches the source.

Link to comment
Share on other sites

Thanks for taking the time again. I did some of the unpacking with spaceFM as it is so easy so the steps did not show in the code I posted. I have followed your guide with and without the cli a few times now and think I have gained an understanding of what is going on.

 

Pretty sure the source link is the cause of the abort as the site it leads to says

 

The domain dockapps.org may be for sale by its owner!

 

So nothing can be downloaded which is a shame but at least I got to try the md5sum hack and that part of the excercise worked ok :thumbsup: :thumbsup:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...