You are not logged in.

#1 2015-05-03 21:11:24

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

[SOLVED]Alternative sources processing in PKGBUILD

Lots of package in aur are specific to the source provider, eg :
https://aur.archlinux.org/packages/thiswarofmine-gog

Is there anyway to specify an alternative source in the pkgbuild, with alternative processing.
In this example my version of "This war of mine" is not in a .tar.gz but in a .zip

Of course, i could create another package.

Last edited by GloW_on_dub (2015-05-05 07:26:53)

Offline

#2 2015-05-03 21:55:36

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED]Alternative sources processing in PKGBUILD

GloW_on_dub wrote:

Is there anyway to specify an alternative source in the pkgbuild, with alternative processing.
In this example my version of "This war of mine" is not in a .tar.gz but in a .zip

Of course, i could create another package.


If you have modified the source then it should be a different package. If you are simply talking about using an alternative, unmodified source for the same package then you should just modify the PKGBUILD for your own use without uploading it. The uploaded package should always use upstream's "official" releases.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2015-05-04 05:09:39

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: [SOLVED]Alternative sources processing in PKGBUILD

ok.
In my exemple, they are no official upstream sources, only different distributors.

Offline

#4 2015-05-04 07:01:49

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED]Alternative sources processing in PKGBUILD

The package is specifically for the GOG version of the game and installation steps for the other distributors will probably differ. You can change the binary name & checksum and see where you end up, but the easiest way is to buy the game at GOG.

So, there are a number of distributors, but the package is specifically for one of them. If you want to use another, change the source array and roll with it, or make a new package specifically for that distributor.

Offline

#5 2015-05-04 09:00:03

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: [SOLVED]Alternative sources processing in PKGBUILD

@runical I'm aware of that, it was just an example et i know how to create a package for my version of the game.

My meaning is there is not *always* a unique official upstream distributor, the solution of creating package for each distributor may prove to be ineficient for certain type of package, games for example.

Offline

#6 2015-05-04 09:32:39

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED]Alternative sources processing in PKGBUILD

That may be true, but it is generally the easiest way to go. In the case of games, you can also make a "detection" kind of script with detects where the binary comes from using checksums or binary names. The (out of date) spacechem pkgbuild demonstrates something like that. [1] The huge disadvantage of this is that you need to have access to every version of the package to test the pkgbuild and that it may become very complex.

Note that this is only needed if the game/software is proprietary, because you'll have access to the sources otherwise and can just build it.

[1] https://aur.archlinux.org/packages/sp/s … m/PKGBUILD

Offline

#7 2015-05-05 07:26:40

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: [SOLVED]Alternative sources processing in PKGBUILD

You're right, it may indeed be complicated and results in half working packages.
Thx

Offline

Board footer

Powered by FluxBB