[arch-general] PKGBUILD work

Ray Rashif schiv at archlinux.org
Sat Feb 5 11:58:21 EST 2011


On 5 February 2011 21:23, Bernardo Barros <bernardobarros2 at gmail.com> wrote:
> Hey all,
>
> How to have access and change PKGBUILD variables? Is there
> command-line tools for this kind of job, so one could easily check,
> for example, the version number, change it and update the checksum?

There is no such prepackaged tool, because we assume these are trivial
tasks which I'm sure you can chalk up yourself, for eg.:

#!/bin/bash
find /var/abs -name $1 -exec grep ^pkgver=[a-zA-Z0-9].* {}/PKGBUILD \;
| sed 's/pkgver=//'

To check.

find /var/abs -name $1 -exec sed 's/^pkgver=.*/pkgver=3.4/' -i {}/PKGBUILD \;

To change.


More information about the arch-general mailing list