Package Details: bluespec-git r721.a6304315-1

Git Clone URL: https://aur.archlinux.org/bluespec-git.git (read-only, click to copy)
Package Base: bluespec-git
Description: Bluespec Compiler (BSC)
Upstream URL: https://github.com/B-Lang-org/bsc
Licenses: BSD
Submitter: Sequencer
Maintainer: Sequencer (thotypous)
Last Packager: thotypous
Votes: 7
Popularity: 0.60
First Submitted: 2020-02-05 02:51 (UTC)
Last Updated: 2024-06-01 15:58 (UTC)

Latest Comments

« First ‹ Previous 1 2

Vekhir commented on 2021-12-06 16:48 (UTC) (edited on 2021-12-06 16:49 (UTC) by Vekhir)

My makepkg fails because pkgrel is 0, when computed. That seems to happen due to my language settings changing the output of 'pacman -Si', which means that the string 'Version' cannot be found. The issue can be fixed by first asking what the word in the 3. line is (where the version is) and then using that word instead. This should be language-independent.

The code for that would be:

# dynamically get Version string as that depends on system language; the 3 below means that the third line contains the version string
Version=$(pacman -Si $(depends[0]) | sed '3q;d' | sed -e 's/\s.*$//')
eval pkgrel=$(pacman -Si ${depends[@]} | awk '/'"$Version"'/{sum+=substr($0,match($0,/[^-]+$/))}END{print sum}')

This fixed the issue for me.

thotypous commented on 2020-04-11 01:35 (UTC)

I managed to make it work: https://gist.github.com/thotypous/cf40bbb2cb7b3d89a0d1671e839c1e7e

Could you please put me as co-maintainer of this package? I'm a long time bsc user - I use the commercial version since 2008.