You are not logged in.

#1 2014-03-30 16:20:21

subraizada3
Member
Registered: 2013-06-02
Posts: 90

[SOLVED] Maintaining SVN Package

I recently took ownership of the redeclipse-svn package (https://aur.archlinux.org/packages/redeclipse-svn).
There are two issues with the package, the first is that the SVN URL is out of date, but that is an easy fix.

The second issue is that the PKGBUILD contains the line

pkgver=6316

When the package is installed, SVN revision 6316 is downloaded instead of the current 6382. I can update pkgver to 6382, but soon it will be out-of-date again.
Is there any way to make the PKGBUILD download the latest version of redeclipse-svn, or do I have to keep updating pkgver every once in a while?

Last edited by subraizada3 (2014-03-31 11:02:13)

Offline

#2 2014-03-30 16:37:29

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,653
Website

Re: [SOLVED] Maintaining SVN Package

Write a pkgver function to update the pkgver for you.

https://wiki.archlinux.org/index.php/VC … 9_function


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-03-31 00:51:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] Maintaining SVN Package

It seems there already is one:

pkgver() {
	pwd
	cd "$SRCDEST/$_svnmod"
	svnversion | tr -d [A-z]
}

No idea what the pwd tries to achieve.  Delete all cases of it.   Also, it should "cd $srcdir/$_svnmod".

Offline

#4 2014-03-31 10:45:58

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: [SOLVED] Maintaining SVN Package

Allan wrote:

It seems there already is one:

It was my fault for not seeing that, will test with the suggested fix and update with a new PKGBUILD.

Offline

Board footer

Powered by FluxBB