You are not logged in.

#1 2014-04-16 16:43:00

garchomps
Member
Registered: 2013-11-02
Posts: 21

edit contents of AUR package

There is a package off AUR I would like to edit the contents of before installing. I use yaourt to get the packages. How would I go about editing a file inside of the package before it's installation?

Last edited by garchomps (2014-04-16 16:51:51)

Offline

#2 2014-04-16 16:49:14

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: edit contents of AUR package

Next time; choose a title that actually describes your issue. Second; yaourt asks if you want to edit a file from the package before creating it. I'm guessing you don't want to edit the PKGBUILD or another file included in the package? Then you'd need to create a patch and add that to the PKGBUILD

Offline

#3 2014-04-16 16:54:12

garchomps
Member
Registered: 2013-11-02
Posts: 21

Re: edit contents of AUR package

Spider.007 wrote:

Next time; choose a title that actually describes your issue. Second; yaourt asks if you want to edit a file from the package before creating it. I'm guessing you don't want to edit the PKGBUILD or another file included in the package? Then you'd need to create a patch and add that to the PKGBUILD

So, I used yaourt -g and have the PKGBUILD and have the .install, but how do I get the actual tar?

Offline

#4 2014-04-16 17:01:33

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

Re: edit contents of AUR package

No idea if yaourt can do what you need i.e. download the upstream source and then stop, but makepkg can - the man page has the details.

Offline

#5 2014-04-16 17:16:06

garchomps
Member
Registered: 2013-11-02
Posts: 21

Re: edit contents of AUR package

tomk wrote:

No idea if yaourt can do what you need i.e. download the upstream source and then stop, but makepkg can - the man page has the details.

Can you tell me how to go about this? I'm going nuts over here.

Offline

#6 2014-04-16 17:25:38

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

Re: edit contents of AUR package

man makepkg | less -p patch

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-04-16 17:42:23

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

Re: edit contents of AUR package

Why are you going nuts? What have you read so far, and what have you tried so far? What worked, or didn't work? What error output did you get?

If you want help, provide details. Around here, we don't just tell people how to do stuff. Make an effort, and we'll help you along.

Offline

#8 2014-04-17 06:07:14

garchomps
Member
Registered: 2013-11-02
Posts: 21

Re: edit contents of AUR package

tomk wrote:

Why are you going nuts? What have you read so far, and what have you tried so far? What worked, or didn't work? What error output did you get?

If you want help, provide details. Around here, we don't just tell people how to do stuff. Make an effort, and we'll help you along.

I want to download the tarball off the aur

Offline

#9 2014-04-17 06:16:29

derekArch
Member
Registered: 2013-02-02
Posts: 22

Re: edit contents of AUR package

You can visit the Aur website, find the package you are looking for download the tarball (the link is on the right hand side of the page), untar it in a directory, then run makepkg and install it using pacman -U foo.tar.xz. You can find more info here.

Last edited by derekArch (2014-04-17 06:17:17)

Offline

#10 2014-04-17 06:46:34

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: edit contents of AUR package

How about you start with the wiki page about the AUR. Everything is explained there and on the links found there.

Offline

#11 2014-04-17 08:33:09

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

Re: edit contents of AUR package

This is just my own curiosity, but what package is it and what do you want to change in it?

Offline

#12 2014-04-17 21:58:06

garchomps
Member
Registered: 2013-11-02
Posts: 21

Re: edit contents of AUR package

derekArch wrote:

You can visit the Aur website, find the package you are looking for download the tarball (the link is on the right hand side of the page), untar it in a directory, then run makepkg and install it using pacman -U foo.tar.xz. You can find more info here.

Thank you, solved

tomk wrote:

This is just my own curiosity, but what package is it and what do you want to change in it?

Error with an IDE

Last edited by garchomps (2014-04-17 22:08:43)

Offline

#13 2014-04-20 13:50:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: edit contents of AUR package

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

#14 2014-04-20 15:26:39

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

Re: edit contents of AUR package

When I was using yaourt I did something very simple in order to interrupt the build process:
Simply execute a shell, e.g. "bash || return 1" as the first command in the build() function, do your editing and then "exit" when you are ready to build. If you want to abort the build, quit the shell with "exit 1"


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

Offline

#15 2018-12-01 20:24:01

jerbot
Member
Registered: 2017-08-17
Posts: 1

Re: edit contents of AUR package

progandy wrote:

When I was using yaourt I did something very simple in order to interrupt the build process:
Simply execute a shell, e.g. "bash || return 1" as the first command in the build() function, do your editing and then "exit" when you are ready to build. If you want to abort the build, quit the shell with "exit 1"

This worked like a charm!  Very simple and straight-forward.  Was exactly what I was looking for. Thank you progandy!!

Offline

#16 2018-12-01 20:40:11

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

Re: edit contents of AUR package


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB