#arch-linux #pkgbuild #makepkg #build-system #unit-testing #arch-build-system

rustympkglib

Library for dealing with Arch Linux's PKGBUILD and makepkg

2 releases

0.1.1 May 8, 2021
0.1.0 Jun 20, 2020

#3 in #makepkg

Download history 29/week @ 2024-04-14 19/week @ 2024-04-21 30/week @ 2024-04-28 29/week @ 2024-05-05 40/week @ 2024-05-12 32/week @ 2024-05-19 41/week @ 2024-05-26 44/week @ 2024-06-02 18/week @ 2024-06-09 21/week @ 2024-06-16 37/week @ 2024-06-23 28/week @ 2024-06-30 24/week @ 2024-07-07 32/week @ 2024-07-14 21/week @ 2024-07-21 45/week @ 2024-07-28

122 downloads per month
Used in rustympkg

MIT license

46KB
958 lines

A rusty (and very much incomplete) crate library for dealing with Arch Linux's PKGBUILD files and implement some of makepkg's (or related tools) functionality.

Limitations

So far this crate can only parse certain key variables and arrays in a PKGBUILD file. It can't actually do anything with the data other than display it as of now. In the near future variables should be editable, and any edit should be written back into the PKGBUILD file.

Usage

This is a library crate, a CLI tool resembling makepkg called rustympkg that makes use of this library's code for its functionality (found it easier to separate concerns and dependencies this way) is also available. Check the CLI tool's README for more information on its status and what it can do so far.

This being the case, and with the current limitations, the usage is mostly up to you. There's the docs.rs documentation, and some examples of usage can be seen in the unit tests in the code.

Dependencies

~15MB
~455K SLoC