diff --git a/toml2json/.footprint b/toml2json/.footprint new file mode 100644 index 000000000..ecd6846e0 --- /dev/null +++ b/toml2json/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/toml2json diff --git a/toml2json/.signature b/toml2json/.signature new file mode 100644 index 000000000..d6563730e --- /dev/null +++ b/toml2json/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/dQE1q4yFrHwM4nbK+H90XPtlbv2c55FPV8LD+oMvpVBQbVP5iCBDMpJD1ofuoOHmdBM3R8i+RIQ/ECfTc4xyAQ= +SHA256 (Pkgfile) = 2770f38787f7af6f3a5d8437cced4c8e12b2ee88d93773260c5d203e40a4a5b5 +SHA256 (.footprint) = fa7e5b6b881986688f097c34acaf8a8e4934370c28005f13e61872d924dd0509 +SHA256 (toml2json-1.3.1.tar.gz) = d32aceb8387553a25bec45747cdb45ce6a079935a03eb13d3477f68cc1fecaaa diff --git a/toml2json/Pkgfile b/toml2json/Pkgfile new file mode 100644 index 000000000..1ff4783d2 --- /dev/null +++ b/toml2json/Pkgfile @@ -0,0 +1,18 @@ +# Description: A very small CLI for converting TOML to JSON +# URL: https://github.com/woodruffw/toml2json +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: rust + +name=toml2json +version=1.3.1 +release=1 +source=(https://github.com/woodruffw/toml2json/archive/v$version/$name-$version.tar.gz) + +build() { + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust + + cargo build --release --manifest-path $name-$version/Cargo.toml + + install -Dt $PKG/usr/bin $name-$version/target/release/$name +}