You are not logged in.

#1 2019-09-13 08:30:09

obelix1502
Member
From: Belgium
Registered: 2017-11-17
Posts: 19

[RESOLVED] Problem in PKBUILD with pkgver()

Hello,

I trys to update the new version of phpstorm, but I have this error in the PKBUILD :

on 2019.2.2b192.6603.42 ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace

I've read the Archwiki, but it doesn't explain this case.

This is the PKBUILD:

# Maintainer: Frederik Schwan <frederik dot schwan at linux dot com>

pkgbase=phpstorm
pkgname=(phpstorm phpstorm-jre)
pkgver=2019.2.2b192.6603.42
pkgrel=1
pkgdesc='Lightweight and Smart PHP IDE'
arch=('x86_64' 'i686')
license=('Commercial')
url='https://www.jetbrains.com/phpstorm/'
makedepends=('rsync')
options=('!strip')
source=(https://download.jetbrains.com/webide/PhpStorm-${pkgver%b*}.tar.gz
        jetbrains-phpstorm.desktop)
sha512sums=('25979367e999ad7c5fd7f1c9763156370d52f36bf41d911969f33f2e32bf11a8779
            'b10edd04a7d48641bec7a9e23037510b426acb5a3059267b2081ec0fce41272d8de
pkgver() {
  echo ${pkgver%b*}b$(find ${srcdir} -maxdepth 1 -type d | tail -1 | cut -d "-"
}


Thank you for your help.

Last edited by obelix1502 (2019-09-13 10:54:00)


ASUSTeK model: Z97-E v
Intel Core i5-5675C
Card: NVIDIA: GeForce GTX 750
Distro:Archlinux Manjaro in dual

Offline

#2 2019-09-13 08:33:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [RESOLVED] Problem in PKBUILD with pkgver()

1. Use code tags: https://wiki.archlinux.org/index.php/Co … s_and_code

2. Edit your thread title to describe your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post

3. Nothing to do with installing Arch: read the forum descriptions


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-09-13 08:36:35

obelix1502
Member
From: Belgium
Registered: 2017-11-17
Posts: 19

Re: [RESOLVED] Problem in PKBUILD with pkgver()

It's done wink


ASUSTeK model: Z97-E v
Intel Core i5-5675C
Card: NVIDIA: GeForce GTX 750
Distro:Archlinux Manjaro in dual

Offline

#4 2019-09-13 08:47:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [RESOLVED] Problem in PKBUILD with pkgver()

Did you not read the link I posted? It explicitly says not to put stupid shit like [Help] in thread titles because a} they are redundant, and b) they piss people off.

Fix it. Now.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-09-13 08:54:39

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: [RESOLVED] Problem in PKBUILD with pkgver()

https://aur.archlinux.org/cgit/aur.git/ … 507195d58b

pkgver() {
  echo ${pkgver%b*}b$(find ${srcdir} -maxdepth 1 -type d | tail -1 | cut -d "-" -f2)
}

${srcdir} is not protected by double quotes

Offline

#6 2019-09-13 09:28:49

obelix1502
Member
From: Belgium
Registered: 2017-11-17
Posts: 19

Re: [RESOLVED] Problem in PKBUILD with pkgver()

jasonwryan wrote:

Did you not read the link I posted? It explicitly says not to put stupid shit like [Help] in thread titles because a} they are redundant, and b) they piss people off.

Fix it. Now.

Sorry, but I don't speak currently English and I don't make effort to translate automatically your post


ASUSTeK model: Z97-E v
Intel Core i5-5675C
Card: NVIDIA: GeForce GTX 750
Distro:Archlinux Manjaro in dual

Offline

#7 2019-09-13 10:15:20

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,930

Re: [RESOLVED] Problem in PKBUILD with pkgver()

From: Belgium

Is dutch, french or german your native language ?
You might want to post in the other languages section , https://bbs.archlinux.org/viewforum.php?id=30 .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2019-09-13 10:53:20

obelix1502
Member
From: Belgium
Registered: 2017-11-17
Posts: 19

Re: [RESOLVED] Problem in PKBUILD with pkgver()

I've tried to install it with trizen and I had this error.

With the correction of the double quotes, I had an error yet.

So I've tried to install it with yay, and whith it, no error yet.

And for the other forums, thank you for your precisions: I speak French wink

Last edited by obelix1502 (2019-09-13 10:56:52)


ASUSTeK model: Z97-E v
Intel Core i5-5675C
Card: NVIDIA: GeForce GTX 750
Distro:Archlinux Manjaro in dual

Offline

Board footer

Powered by FluxBB