Package Details: jet-bin 0.7.27-1

Git Clone URL: https://aur.archlinux.org/jet-bin.git (read-only, click to copy)
Package Base: jet-bin
Description: CLI to transform between JSON, EDN and Transit, powered with a minimal query language.
Upstream URL: https://github.com/borkdude/jet
Licenses: EPL
Conflicts: jet
Provides: jet
Submitter: ngrunwald
Maintainer: dharrigan
Last Packager: dharrigan
Votes: 5
Popularity: 0.000393
First Submitted: 2019-12-22 01:08 (UTC)
Last Updated: 2023-08-02 12:28 (UTC)

Latest Comments

dharrigan commented on 2021-07-30 11:45 (UTC)

Thank you for the tip! Will apply! :-)

alerque commented on 2021-07-30 11:45 (UTC) (edited on 2021-07-30 11:47 (UTC) by alerque)

Some of your code could be considerably simplified. For example instead of:

install -Dm755 "${srcdir}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"

Try:

install -Dm0755 -t "$pkgdir/usr/bin/" "${pkgname%-bin}"

The package() function is garanteed to start in $srcdir, so that is unnecessarily specific, and you don't need to repeat the name of the file you are installing except in the event you are renaming it in the process.