updpkgsums gives error about pkgver and pkgrel?

I'm trying to create a PKGBUILD for a small Python app I made. I have no intention as of now to actually submit this to the AUR, I just wanted to get a feel for the process.

The PKGBUILD is (as far as I know) constructed except for the md5sums. When I try to add these with updmd5sums, I get the following error:

==> ERREUR : n’est pas disponible pour l’architecture « x86_64 ».

==> ERREUR : pkgrel ne peut pas être vide.

==> ERREUR : pkgver ne peut pas être vide.

Translation:

"Not available for x86_64 architecture."

"pkgrel cannot be empty."

"pkgver cannot be empty."

My PKGBUILD is here: https://paste.ubuntu.com/15023991/

There are no errors in it as far as I can tell. The only other case of this error that I found through Google was caused by the guy using single quotes instead of double on the source var, but that clearly isn't the issue here.

Does anyone see what I'm missing? Thanks!

Posted Feb 12, 2016, 1:28 PM UTC

15
Svenstaro•

You have depends=('python', 'python-pyinsane') but bash arrays don't actually use commas. Remove that comma and see if it works.

2
BoonedoggleOP•

Thanks for the correction! This is the first time I've really used bash as a scripting language.

Unfortunately, the error remains unchanged.

1
ropid•

I bet the tool wants to update sums that are already there in the file, and it does not like an md5sum=() that's empty. For the first time, get the sum with md5sum QuickScan-0.1.0.tar.gz and add it manually.

There might be a trick to put garbage into the md5sum=() line to make the updpkgsums tool work and do its job. No idea.

Also, about that comma that was mentioned with regards to bash arrays... With what you typed, you don't cause an error, but you do something that you don't want. You create an array with these two entries:

  • "python,"
  • "python-pyinsane"

The comma is there as text in the first entry of the array. It's not saying "python" like what you wanted.

What's happens there is, bash splits and collects the text on a command line into "words". On the command line, if there is no space and things touch, those things are put in the same word. An example: when you do "a b c" def, you get two words, (1) a b c and (2) def, and if you do "a b c"def, you get a single word a b cdef. In the PKGBUILD you showed, there's a 'python' and a , touching and you get a word python,.

The same rules as for words on a command line are used inside the =() for arrays.

1
allu2525•

It's something other than updpkgsums. Are you actually running updmd5sums as you said in the post? Can't find that binary on my system or in repositories with pkgfile. Here's my output with no changes to PKGBUILD (I assume the repository is private):

allu2525@arch-laptop ~/AUR/test % updpkgsums
==> Retrieving sources...
  -> Downloading QuickScan-0.1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 401 UNAUTHORIZED
==> ERROR: Failure while downloading https://bitbucket.org/eric_daigle/quickscan/downloads/QuickScan-0.1.0.tar.gz
    Aborting...
==> ERROR: Failed to generate new checksums
1
EchoTheRat•

Please set env variable LANG to C when you're debugging (fastest way in bash is LANG=C, it will last for the currently open terminal session)

Most programs will output directly in english.

1