How does I can get sha512sums?

I’m doing some learning about AUR and I need to link a small app I have in my GitLab repo (which is better for this GitLab or GitHub?). Anyway I don’t know how to generate the sha512sums that need to be added to the PKGBUILD file.

source=(
  $_url/${pkgname}
  $_url/${pkgname}-helper
  $_url/${pkgname}-collect   # not installed as app, used only under PKGBUILDS/eos-apps-info
  $_url/${pkgname}.desktop
  $_url/${pkgname}.conf
  $_url/${pkgname}-pages.tar.gz
)
#The sha512sums for the above 5 files. I think.
sha512sums=('87a56e2972b9a8d4a2cab73d9b74260a59b44e4b9145bd70a3627732a13fca2388c2bec35dba448476b43587150d0137c2ba8d4d2e343a3e635e618b89a8487d'
            '03960ec9347a18a661436c75e047c61e97504415d1386fe5c4a5d0ffd9a4e6e2d460fe2fd4ccae934b368368486bcb1665e62e98d7cbd3db31f06df413fb89d0'
            '59fd2cad19572e4d4f73577ff74f37c21cd983a8e9ff35434624878cf04177be2a9964f2440aa1357abb1c45d408529fec0d2f1fa8bfc81b206b7c89f76de8f9'
            '8a0692ff5e714a0690c7a90d04a928b2edf2e01515f8707b345d0da36ee95cab7f4f9badf3dca6cbd280438a08519957c5852be92e7936da9f0affef3d895b17'
            'dd0a526b458c737a771077e16fb443c825536a554df6ba46e34f76008b0e043346a50a4562ba06f41a44979e22ef6f45578a9c09d207cafdc3f22fb3c98f66a2'
            'f422b7553ac7ee0398e386c8e07ddbb297e0a7136e1a30bc3f2a4d7a5f5c4e8c6b9f28f43e4deb70332620decc3a668024ea6c9e37481c2dc33ba551508fe6f3')

How can I get these?

  1. Upstream should ideally provide checksums and/or signatures for releases
  2. sha512sum $file
  3. makepkg -g
  4. updpkgsums

The one you prefer. Some prefer GitLab because it’s not owned by Microsoft.

2 Likes

I figured it out thank you.

My understanding of this is that they are checksums for the files listed. You have been given them in the PKGBUILD. What needs doing is to check them against the other received files - as listed.

Once you access to the files, the simplest usage is:
sha512sum filename to produce an output you can compare to. More info from man sha512sum or sha512sum --help - or in the usual places like Archwiki :grin:

Hope this helps…

1 Like

Yeah, I just wanted to find out how to generate them for the first time to use with my files in my repo. Did a search but it only showed me errors that got solved not what to do might be my mistake with search.

GitLab also has nicer buttons.

Slightly NSFW language, relevant timestamp: 1:04:40

2 Likes

This trend is already gone.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.