Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/void-linux/plist2json
https://github.com/void-linux/plist2json
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/void-linux/plist2json
- Owner: void-linux
- License: other
- Created: 2022-10-06T12:58:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T13:07:14.000Z (about 2 years ago)
- Last Synced: 2024-11-05T09:50:50.054Z (about 2 months ago)
- Language: C
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
## WTF
plist2json converts NetBSD's portable property list files to
the JSON format in pretty (default) and compact mode.- [portableproplib](https://github.com/xtraeme/portableproplib)
- [JSON](https://www.json.org/json-en.html)## Dependencies
- A C99 compiler (clang, gcc, pcc, tcc)
- [GNU make](https://www.gnu.org/software/make)
- [portableproplib](https://github.com/xtraeme/portableproplib)## Building and installing
Accepted arguments passed in to make(1):
- CFLAGS (set to `-O2 -Wall -Werror -Wextra -g -pipe -std=c99`)
- LDFLAGS (set to `-L$PREFIX/lib`)
- PREFIX (set to `/usr/local`)
- MANDIR (set to `$PREFIX/share/man`)
- STATIC (for static builds)```
$ make PREFIX=~/plist2json install clean
```## Examples
Converting the xbps pkgdb plist file:
```
$ plist2json /var/db/xbps/pkgdb-0.38.plist
```Converting the xbps repository index plist file, on the fly with `tar(1)` and `plist2json(1)`:
```
$ tar -xOf x86_64-musl-repodata index.plist|plist2json
```Use JSON compact mode:
```
$ COMPACT_MODE=1 plist2json index.plist
```## License
[BSD-2-Clause LICENSE](COPYING)