You are not logged in.

#1 2012-07-25 18:15:41

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

[Solved]Do you need just a PKGBUILD file to install an AUR app?

I've long wondered whether or not one needs to actually download a tarball in order to build a package from the AUR.  Some people have posted here on the forum that all you need to do is download the PKGBUILD file and run "makepkg -i PKGBUILD."

I have tried this a few times but everytime I had to download the tarball or I got an error when I run "makepkg."  IE, the last error I got was "(app name's) install file doesn't exist."  Am I just fundamentally stupid or ignorant?  I have looked at the wiki pages for the docs about the AUR and the "make your own packages" page as well as the makepkg page.  I have yet to see where in those pages it says you can just use the PKGBUILD file alone. 

MS

Last edited by MoonSwan (2012-07-25 20:43:31)

Offline

#2 2012-07-25 18:23:03

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

You need a PKGBUILD, which is the base script, and all the files it may need to create a package. They all come in a *.tar.gz archive for convenience. You have to examine the content of a PKGBUILD to know exactly what is needed when you run makepkg. When you get "an" error you should check what exactly stands behind this "an", which is usually neatly printed on your screen. wink

Last edited by bohoomil (2012-07-25 18:23:21)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-07-25 18:34:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

MoonSwan wrote:

I've long wondered....

Why would you wonder about any of this? More importantly, why would you waste everyone's time asking about it? It's all documented very clearly, in the relevant man and wiki pages.

Offline

#4 2012-07-25 18:41:15

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

Quite obvious: if the tarball only contains the PKGBUILD, then it works with the PKGBUILD file alone. Otherwise, you need to download the tarball.

Offline

#5 2012-07-25 18:53:49

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

https://wiki.archlinux.org/index.php/AU … g_packages

Was this not clear enough?


Here's a neat trick: place the following in /etc/bash.bashrc (or ~/.bashrc, if you want) and then restart the terminal.

alias e='nano -x'

# For AUR packages

ia() {
cd ~/.builds
wget -q "https://aur.archlinux.org/packages/${1:0:2}/$1/$1.tar.gz"
tar xf "$1.tar.gz"
rm "$1.tar.gz"
cd $1
ls
}

alias m='makepkg -s'
alias I='sudo pacman -U'
alias Ii='sudo pacman -U *.xz'

Then, to install, say, bloboats you can just type:

$ ia bloboats
$ e PKGB[press Tab]
<see that it's all good and no "rm -rf /" anywhere (lol), which implies at least a basic understanding of how scripting works>
$ m
$ Ii
$ bloboats

Have fun.

PS: This method is better than using some AUR helper; at least you're aware of what you're installing. And with minimal typing. wink

Last edited by DSpider (2012-07-25 19:53:11)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-07-25 20:40:34

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

Thank you for the information.  Once more I have missed the glaringly obvious.  I thought I'd read the wiki but apparently I had not done so.  I shall mark this solved with a large portion of humble pie.
Apologies for wasting people's time (again).

DSpider:  thanks for that!  I am grateful for you help and the script.  Definitely useful!

Offline

#7 2012-07-25 21:09:31

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

DSpider wrote:

wall of text

You forgot the -i flag to makepkg.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2012-07-25 21:17:32

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

Hmmm... Not a bad idea actually. I think I can remove the "sudo pacman -U *.xz" alias now.

Thanks.


$ ia bloboats
$ e P[press Tab]
$ m

Much better.

Last edited by DSpider (2012-07-25 21:45:02)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#9 2012-07-25 21:30:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [Solved]Do you need just a PKGBUILD file to install an AUR app?

sudo pacman -U *.xz is too greedy anyway, imo. Unless you regularly clear out .builds.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB