5 unstable releases
0.2.2 | Jan 27, 2024 |
---|---|
0.2.1 | Jan 18, 2024 |
0.2.0 | Jan 18, 2024 |
0.1.0 | Jan 13, 2024 |
0.0.0 | Jan 8, 2024 |
#558 in Command line utilities
9KB
131 lines
updpkg
a small tool for updating your PKGBUILD recipes
synopsis
A small tool for updating PKGBUILD recipes
Usage: updpkg.exe [OPTIONS] [DIRECTORY]
Arguments:
[DIRECTORY] path to directory with PKGBUILD [default: .]
Options:
-v, --ver <VERSION> new version of package (tarball)
-m, --make <FLAGS> invoke `makepkg` with optional flags (like you are invoking it manually)
-M, --make-mingw <FLAGS> the same as `make`, but for `makepkg-mingw`
--git <SHA> specify commit SHA
-r, --rm <FILES>... removes files from directory and recipe
--use-sd use sd instead of sed
-h, --help Print help
-V, --version Print version
usage example
update checksums for PKGBUILD in current directory
$ updpkg
update checksums, version to 1.1.1 and invoke makepkg-mingw -sc
for directory mingw-w64-dummy
$ updpkg mingw-w64-dummy --ver '1.1.1' --make-mingw='-sc'
remove dummy.patch
from recipe and directory, update checksums and invoke makepkg -sc
for
directory dummy
$ updpkg dummy --rm 'dummy.patch' --make='-sc'
update checksums and commit SHA in recipe for current directory
$ updpkg --git='55932aad9ec31456a0ed8c3488173e8b78113652'
sd support
you can use sd (instead of sed) for changing fields. to do so, just pass --use-sd
option. if you
don't need ot at all, you can pass --no-default-features
at build
Dependencies
~1.4–2MB
~38K SLoC