Skip to content

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.

1 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
pr10o

Author

4
posts
22
comments
0
media
View profile

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.

3 points

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.

2 points

Yes, you are correct. And since the repository cannot be in source(), it is not there. Good luck then :)

1 points

Download the file you want to check and run :

md5sum /path/to/filename

and that should give you the md5sum, .....presuming the copy you downloaded was clean.

2 points

You can also use

makepkg -g

to generate md5sums/sha1sums/whatever the PKGBUILD looks for

2 points

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?

1 points
unknown author

Deleted before we saved it.

2 points

Since it will be pulling the latest svn version, simply ommit the md5sums portion.

2 points
unknown author

Deleted before we saved it.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.