You are not logged in.

#1 2019-11-11 08:04:09

brainfucksec
Member
Registered: 2017-03-01
Posts: 40
Website

[SOLVED] PKGBUILD - pkgver function

Hello everyone.

From the wiki I can not understand how to use the function `pkgver()`, if I use this:


pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

What exactly do I have to put in the variable `pkgver`?
From the wiki:  To use pkgver(), you still need to declare the pkgver variable with the most recent value.

Thanks for the help.

Last edited by brainfucksec (2019-11-11 08:17:17)


--= [ |<!55 ]=--

Offline

#2 2019-11-11 08:16:54

brainfucksec
Member
Registered: 2017-03-01
Posts: 40
Website

Re: [SOLVED] PKGBUILD - pkgver function

I solved it, you have to enter the number of the latest version normally.


--= [ |<!55 ]=--

Offline

#3 2019-11-11 12:40:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] PKGBUILD - pkgver function

You can also just run makepkg once, and it will update the pkgver variable in the PKGBUILD.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB