updpkg

Crates.ioupdpkg
lib.rsupdpkg
version0.2.2
sourcesrc
created_at2024-01-08 11:28:06.833711
updated_at2024-01-27 08:42:43.13806
descriptionA small tool for updating PKGBUILD recipes
homepage
repositoryhttps://github.com/ognevny/updpkg
max_upload_size
id1092428
size17,456
Maksim Bondarenkov (ognevny)

documentation

README

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

Commit count: 0

cargo fmt