You are not logged in.
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
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. ![]()
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
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
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
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
$ bloboatsHave 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. ![]()
Last edited by DSpider (2012-07-25 19:53:11)
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
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
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
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]
$ mMuch better.
Last edited by DSpider (2012-07-25 21:45:02)
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
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