Jump to content


Archlinux -- Easy way to download AUR archives


  • Please log in to reply
8 replies to this topic

#1 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,108 posts

Posted 03 March 2012 - 11:17 AM

I just found this yaourt switch while reading the man page:
QUOTE
-G, --getpkgbuild <package>
           Get PKGBUILD for ABS or AUR.


QUOTE
╔═ 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.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#2 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 18,225 posts

Posted 03 March 2012 - 12:59 PM

See! Ya' learn something new every day. wink.gif

Posted Image


#3 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,108 posts

Posted 03 March 2012 - 01:00 PM

QUOTE (V.T. Eric Layton @ Mar 3 2012, 10:59 AM) <{POST_SNAPBACK}>
See! Ya' learn something new every day. wink.gif

thumbsup.gif
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#4 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,568 posts

Posted 03 March 2012 - 01:17 PM

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


Neat trick but why have you got more stuff when you use it ??
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#5 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,108 posts

Posted 03 March 2012 - 01:47 PM

QUOTE (abarbarian @ Mar 3 2012, 11:17 AM) <{POST_SNAPBACK}>
CODE
$ 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:
CODE
╔═ 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


Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#6 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,568 posts

Posted 03 March 2012 - 01:49 PM

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

CODE
[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.gif

Looks like I got me answer

CODE
# 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.gif

Hmm the source address is a dead link. blushing.gif

However I have another idea.  whistling.gif

Edited by abarbarian, 03 March 2012 - 06:24 PM.

Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#7 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,108 posts

Posted 03 March 2012 - 07:08 PM

You have to extract the archive as you cannot run makepkg against am archive,  only on an PKGBUILD.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#8 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,108 posts

Posted 03 March 2012 - 07:57 PM

Also,  that file wouldn't work as you cannot run makepkg against the source file, only against a PKGBUILD which fetches the source.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#9 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,568 posts

Posted 03 March 2012 - 10:20 PM

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

QUOTE
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.gif thumbsup.gif
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users