How do you get a checksum (md5 or sha) from a svn repo for a PKGBUILD?
I want to try and make my own pkgbuild but I don't know how to get the checksum from a svn repo? Since it's not a .tar.gz I don't have any idea how to do it. I tried the Arch Linux Forums and got zero responses so far and thought I would try here.
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- pr10o
10 comments
I was going to suggest taking a look at pkgbuilds for some of the -svn packages in AUR but it seems they don't actually use hash for repositories as they are probably assumed to be correct and the content may change unless you tie your package to certain revision.
It seems that some do, and some don't.
EDIT: Turns out that the md5 is only used for what ever is in the source(). If if doesn't have anything in source it doesn't use md5, if there is something in source() then the md5 is of that.
Yes, you are correct. And since the repository cannot be in source(), it is not there. Good luck then :)
Download the file you want to check and run :
and that should give you the md5sum, .....presuming the copy you downloaded was clean.
You can also use
to generate md5sums/sha1sums/whatever the PKGBUILD looks for
When would I use makepkg -g to generate the checksum on the package? I guess I just don't understand, it seems like I need to do that on the PKGBUILD but don't I need the checksum before I can have a working PKGBUILD?
Deleted before we saved it.
Since it will be pulling the latest svn version, simply ommit the md5sums portion.
Deleted before we saved it.