Package Details: wscat 1.0.1-4

Git Clone URL: https://aur.archlinux.org/wscat.git (read-only)
Package Base: wscat
Description: Netcat-like utility for WebSockets
Upstream URL: https://github.com/websockets/wscat
Licenses: custom
Submitter: kstep
Maintainer: eXeC64
Last Packager: eXeC64
Votes: 25
Popularity: 0.195844
First Submitted: 2015-10-01 07:09
Last Updated: 2016-03-13 16:41

Latest Comments

kstep commented on 2017-09-11 08:05

Although it seems like pkgver variable should be declared anyway.

kstep commented on 2017-09-11 08:04

It's allowed. See https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver.28.29_function for reference.

f4bio commented on 2017-09-11 02:52

sorry for my late response.
your right, cloning and makepkg'ing works for me too - just checked
but building with pacaur doesn't: https://asciinema.org/a/GPaTS8hXESrjEPWfEPKCDorOW
the error message makes it sound like the PKGCONFIG has some misconfig. after looking in your PKGCONFIG I discovered you set the "pkgver" dynamically (via the function "pkgver()"). I've never seen it like this, so I changed it to "pkgver=1.0.1" and it built just fine.
but yea... seems kinda pacaur related. although I'm unsure about the rules for arch packages, is that dynamic "pkgver()-trick" allowed?

eXeC64 commented on 2017-08-06 13:00

@f4bio, Just cloned, ran makepkg, and installed successfully. Do you have more detailed steps to reproduce your issue?

f4bio commented on 2017-08-03 23:29

[...]
:: Installing wscat package(s)...
:: wscat package(s) failed to install.
:: ensure package version does not mismatch between .SRCINFO and PKGBUILD
:: ensure package name has a VCS suffix if this is a devel package

I think thats due to your pkgver(), it makes the PKGBUILDs version dynamic (I don't even know if thats allowed?) but .SRCINFOs verion is fixed

eXeC64 commented on 2016-03-13 16:42

Applied the fix suggested by luxor, and removed the empty build step.

Svenstaro commented on 2016-02-28 01:04

No maintainer action, orphaning. luxor, feel free to take over.

luxor commented on 2016-02-21 05:36

Changing line 7 of PKGBUILD from:

license="custom"
to
license=("custom")

fixes the issue Svenstaro encountered.
PKGBUILD should be:

pkgname=wscat
pkgver=1.0.1
pkgrel=3
pkgdesc="Netcat-like utility for WebSockets"
url="https://github.com/websockets/wscat"
arch=("x86_64" "i686")
license=("custom")
depends=("nodejs")
makedepends=("npm")

pkgver() {
npm show wscat | awk -F"[: ',]+" '/version:/ { print $3 }'
}

build() {
echo ""
}

package() {
export npm_config_prefix="${pkgdir}/usr"
npm install -g wscat
}

Svenstaro commented on 2016-01-31 00:48

This couldn't work: ==> ERROR: license should be an array