makepkg: How can I pause the process and edit the source?

This forum is for discussion about general software issues.

makepkg: How can I pause the process and edit the source?

Postby Diiny » Fri Dec 11, 2015 1:32 am

I have been able to tweak omxplayer on my Raspbian OS and build it with success. I needed to stagger the short/long jump back/forwards.

But on my arch system, the only way I have found to successfully build omxplayer is with makepkg. I have tried it and have had success. But when I go and change the source code (found in the src directory) and run makepkg again, it copies the source again, overwriting my changes. Is there a way to pause makepkg after downloading the source to make changes, and then resume the build process? Or possibly a way to tell makepkg to use the source that is found locally?

I'm so close to where I want to be, but this last step is really trying my patience. Can anybody help me?
Diiny
 
Posts: 3
Joined: Thu Nov 26, 2015 11:20 pm

Re: makepkg: How can I pause the process and edit the source

Postby Diiny » Fri Dec 11, 2015 1:51 am

I found the following:
$this->bbcode_second_pass_quote('', ' ')PKGBUILD
A Bash script that contains the URL of the source code along with the compilation and packaging instructions.

It's a bash script. I found the build() function, and added this the the beginning of it:

$this->bbcode_second_pass_code('', 'echo "Go now!"
sleep 60
echo "5 seconds left!"
sleep 5
')
It was long enough to do my changes.
Diiny
 
Posts: 3
Joined: Thu Nov 26, 2015 11:20 pm

Re: makepkg: How can I pause the process and edit the source

Postby moonman » Fri Dec 11, 2015 3:12 am

You can create a patch so you dont have to replace the src all the time ( that is if i understood you correctly)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: makepkg: How can I pause the process and edit the source

Postby WarheadsSE » Fri Dec 11, 2015 6:01 pm

have a look at the flags for makepkg

Hint: e
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests

cron