You are not logged in.

#1 2024-12-11 16:55:22

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

[SOLVED] makepkg, skip everything and archive directly

I've already DESTDIR=../pkg make install
PKGBUILD metadata are complete

How to :

Directly archive pkg dir without building ?

Last edited by Halano (2024-12-12 17:10:40)


.:HalanoTheSmartMoth:.

Offline

#2 2024-12-11 17:05:26

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 909
Website

Re: [SOLVED] makepkg, skip everything and archive directly

There is the "-R, --repackage" option to makepkg, if I understood you right this does what you want to do (repackage without rebuilding)

Offline

#3 2024-12-11 17:59:34

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

Re: [SOLVED] makepkg, skip everything and archive directly

gromit wrote:

There is the "-R, --repackage" option to makepkg, if I understood you right this does what you want to do (repackage without rebuilding)

$ makepkg -R just now It remove pkg dir and generate empty package with metadata only


.:HalanoTheSmartMoth:.

Offline

#4 2024-12-11 18:27:26

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

Re: [SOLVED] makepkg, skip everything and archive directly

Holys

==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Tidying install...

==> Removing existing $pkgdir/ directory...

how to prevent that ?


.:HalanoTheSmartMoth:.

Offline

#5 2024-12-11 18:37:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,326

Re: [SOLVED] makepkg, skip everything and archive directly

I don't think you can. What you're doing is well outside the scope of a PKGBUILD, and of a packaging system in general.

See https://xyproblem.info/ . What you're wanting to do here makes little sense.

Last edited by Scimmia (2024-12-11 18:46:31)

Offline

#6 2024-12-12 15:21:42

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

Re: [SOLVED] makepkg, skip everything and archive directly

Scimmia wrote:

I don't think you can. What you're doing is well outside the scope of a PKGBUILD, and of a packaging system in general.

See https://xyproblem.info/ . What you're wanting to do here makes little sense.

No

You wrong, wdym scope of a PKGBUILD
wdym packaging system in general

I can simply through them rootly but that make pacman conflicting if the package got new version

makepkg is half coocked couldn't provide the simplest method I wanted.


.:HalanoTheSmartMoth:.

Offline

#7 2024-12-12 16:02:35

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,580
Website

Re: [SOLVED] makepkg, skip everything and archive directly

Why can't you put the "DESTDIR=../pkg make install" in the package() function? Why do you need to do it manually?


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

#8 2024-12-12 16:45:27

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

Re: [SOLVED] makepkg, skip everything and archive directly

WorMzy wrote:

Why can't you put the "DESTDIR=../pkg make install" in the package() function? Why do you need to do it manually?

I just used this method, it works thanks very much.

Last edited by Halano (2024-12-12 16:49:37)


.:HalanoTheSmartMoth:.

Offline

#9 2024-12-12 16:47:28

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,580
Website

Re: [SOLVED] makepkg, skip everything and archive directly

Please be more specific, we can't help you if you don't give us the information we request.


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

#10 2024-12-12 17:00:48

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

Re: [SOLVED] makepkg, skip everything and archive directly

WorMzy wrote:

Please be more specific, we can't help you if you don't give us the information we request.

my question explain itself and you just give me the needed answer

WorMzy wrote:

Why can't you put the "DESTDIR=../pkg make install" in the package() function

I've added make install into package function and makepkg bundle it right.


.:HalanoTheSmartMoth:.

Offline

#11 2024-12-12 18:29:28

seth
Member
Registered: 2012-09-03
Posts: 60,807

Re: [SOLVED] makepkg, skip everything and archive directly

Fwwi, https://www.deepl.com/ speaks arabic and english - it might help with future threads.

Offline

#12 2024-12-12 18:30:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,326

Re: [SOLVED] makepkg, skip everything and archive directly

No, your question does not explain itself. You're trying to do a lot of things outside of the PKGBUILD that you should not be doing, and we were asking why. Now it appears you were doing them because you don't know what a PKGBUILD does. Look at some example PKGBUILDs.

Last edited by Scimmia (2024-12-12 18:32:28)

Offline

#13 2024-12-14 06:56:13

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 47
Website

Re: [SOLVED] makepkg, skip everything and archive directly

Scimmia wrote:

You're trying to do a lot of things outside of the PKGBUILD that you should not be doing

I don't cares I just put the build commands inside package() function and it works.

seth wrote:

Fwwi, https://www.deepl.com/ speaks arabic and english - it might help with future threads.

I don't cares people just understood it
sorry I'm not native english speaker, but thanks for the link I might use it.


.:HalanoTheSmartMoth:.

Offline

#14 2024-12-14 08:15:54

seth
Member
Registered: 2012-09-03
Posts: 60,807

Re: [SOLVED] makepkg, skip everything and archive directly

I don't cares people just understood it

Nobody understood anything about the nonsense in your OP - WorMzy just went straight to the https://en.wikipedia.org/wiki/XY_problem and his comment is unrelated to your question and translates to "Do you actually understand how makepkg works?" to which the answer is "no" because you failed to read or comprehend the basic documentation.

You don't have to be sorry for not being a native english speaker - most people on the board probably aren't - but this works much better if you can express yourself and comprehend what is said on the board and the wiki - deepl.com can help with that a lot.

Offline

Board footer

Powered by FluxBB