You are not logged in.

#1 2015-11-07 06:26:29

MichaelTiebesl
Member
From: Makati City
Registered: 2015-10-13
Posts: 6
Website

[Solved] pkgver change in PKGBUILd

Hi there... smile

I uploaded today a package to AUR
https://aur.archlinux.org/packages/masalla-icon-theme/

I changed a few things in a new PKGBUILD and uploaded that to AUR again.
I did that with:

$ mksrcinfo
$ git commit -am 'Update PKGBUILD'
$ git push

Now i can see when i install the packages the pkgver changed always in .-1
It should be 0.8

This is the PKGBUILD:

pkgname=masalla-icon-theme
pkgver=0.8
pkgrel=2
pkgdesc="Latest flat design theme by Hayder Majid"
arch=('any')
url="https://github.com/hayderctee/masalla-icon-theme"
license=('GPL3')
depends=()
makedepends=('git')
optdepends=()
provides=('masalla-icon-theme-git')
conflicts=('masalla-icon-theme-git')
source=('git+https://github.com/hayderctee/masalla-icon-theme.git')
sha256sums=('SKIP')

pkgver() {
  cd $srcdir/$_pkgname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  # create theme dirs
  install -d -m 755 "$pkgdir"/usr/share/icons/Masalla

# install theme
  cd $srcdir/$_pkgname/masalla-icon-theme
  cp -r . "$pkgdir"/usr/share/icons/Masalla
}

Why is that?

Thanks

Last edited by MichaelTiebesl (2015-11-07 06:41:08)


| Gitarist | Linux gebruiker | Sportliefhebber | Optimist | Dromer | Echtgenoot | Vader |

Offline

#2 2015-11-07 06:28:26

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

Re: [Solved] pkgver change in PKGBUILd

Not a Pacman issue, moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-07 06:30:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] pkgver change in PKGBUILd

The whole point of a pkgver() function is to change the pkgver on each build. That's where your problem is.

Last edited by Scimmia (2015-11-07 06:30:39)

Offline

#4 2015-11-07 06:40:40

MichaelTiebesl
Member
From: Makati City
Registered: 2015-10-13
Posts: 6
Website

Re: [Solved] pkgver change in PKGBUILd

Sorry @jasonwryan i tought i check it if it was in the AUR issues...next time double check smile

Thanks @Scimmia to point me, i see what you mean.


| Gitarist | Linux gebruiker | Sportliefhebber | Optimist | Dromer | Echtgenoot | Vader |

Offline

Board footer

Powered by FluxBB