You are not logged in.
Hi all,
I've been given access to the source code of some proprietary software called Rocrail and I've been trying to tackle the best way to create a PKGBUILD for it. Naturally, I can't just have everyone download the source code - I have to compile and host the binary packages myself.
My current solution is to make install the code, put it all in a tar.xz file, and then have the client extract and create the package on their side. I'm wondering if there's a way for me to create the package itself on my end, and then have a PKGBUILD in the AUR which simply downloads it.
TL;DR - How can I create a PKGBUILD which simply downloads a prebuilt package? Is this possible?
Last edited by Eelviny (2016-11-12 11:56:52)
Offline
I wouldn't bother with that approach and create a PKGBUILD for yourself, build the package in a chroot with makechrootpkg, then host the packages someplace. You'd have to do the hosting yourself anyway, since the AUR doesn't accept files beyond a certain file size (AFAIK).
https://wiki.archlinux.org/index.php/De … ean_Chroot
https://wiki.archlinux.org/index.php/Us … repository
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Hi @Alad.
Thanks for the quick response. I've now gone down the private repository route and run into a small problem:
The repository is now on my webserver and responding, but upon downloading a package, I run into this:
`error: rocrail: missing required signature`
How do I go about generating the signature? I don't want to try and bypass it since this will be a public repo.
UPDATE: Figured out how to disable signature checking, using the line `SigLevel = Optional`. This is my temporary solution...
Last edited by Eelviny (2016-11-12 13:46:33)
Offline
Did you sign both the package and package database? You can do so with gpg:
gpg --verbose --detach-sign --no-armor nameofpackage.pkg.tar.xz
Same for the database, or pass on --sign to repo-add or repose.
For instructions on setting up a GPG key pair, see the wiki:
https://wiki.archlinux.org/index.php/GnuPG
----
When that's all done, set up pacman on the client accordingly:
https://wiki.archlinux.org/index.php/Pa … icial_keys
Last edited by Alad (2016-11-12 13:56:34)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline