Age | Commit message (Collapse) | Author | Files | Lines |
|
With pacman 4.1 $srcdir is no longer set outside of PKGBUILD
functions. Yipee! This breaks all of my PKGBUILDs. Now we
switch to storing the distribution's tarballed directory in the
_ddir custom variable. We cd into $srcdir/$_ddir at the
beginning of every func.
Custom variable mechanics have changed in bin/pbfields as
well. Instead of hard-coding _dir as an accepted field, any
PKGDATA entry with a name starting with underscore (_) is
considered a custom variable and printed in the PKGBUILD.
|
|
|
|
|
|
Tried to normalize style. Renames alot of things. Uses variables
to make things easier on the eyes. Fix bugs that I introduced:
- pkgdesc does not expand parameters
- array fields not printing
- generally bad logic in quoting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Alot of logic was added to allow changing versions
in mods while still preserving the version in the
$_ver custom variable.
|
|
pbfields now recognizes a customvars field which names
other fields it should print in the PKGBUILD header. These
field names are prefixed with an underscore ("_").
|
|
The current setup is only really good for modifying PKGBUILD fields. The
modification of PKGBUILD funcs is hackish. Instead, the tweaks will be
written in a scripting language (like Io) where both PKGBUILD fields
and function code can be easily modified.
Fields should be able to be modified just like arrays, but with easier
package matching going on. PKGBUILD bash functions are simply arrays
of lines, but they are not as sophisticated. Instead they can only be
appended to.
Package files are represented as trees. Each file (PKGBUILD pkg.install)
is a child of the top-level node of the tree. Each child of the file
node is a section of the file (intro, body, end). Each section can
also have its own intro, body, and end node. In this way each bash
function is a node with its own intro, body, and end node. Prepending
to a function appends to its intro node. Appending to a function appends
to its end child node. The body cannot be modified.
|