Package Details: js-beautify 1.10.2-2

Git Clone URL: https://aur.archlinux.org/js-beautify.git (read-only, click to copy)
Package Base: js-beautify
Description: Beautify JavaScript/JSON (jsbeautifier.org)
Upstream URL: http://jsbeautifier.org/
Licenses: MIT
Conflicts: python-jsbeautifier
Submitter: tokland
Maintainer: tokland
Last Packager: tokland
Votes: 37
Popularity: 0.22
First Submitted: 2010-12-04 22:02
Last Updated: 2019-08-29 07:14

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

tokland commented on 2013-06-26 20:23

hi @alzeih, thanks for the tip. Could you modify the PKGBUILD to take a fixed commit? as you say to take the last one would be better for a -git package.

alzeih commented on 2013-06-26 13:34

New PKGBUILD if helpful: http://sprunge.us/jGYU

Technically probably for a package called js-beautify-git though, I haven't tied it to a release.

tokland commented on 2012-06-09 12:47

Updated to the last commit in master.

jpike commented on 2012-06-09 09:24

The git commit referenced in the PKGBUILD no longer exists.

I had to change it to "master", then it worked fine. Bit bleeding edge I guess.

Anonymous comment on 2011-11-13 07:45

tokland: Just ran an update and it installed cleanly. Thanks :).

tokland commented on 2011-11-12 16:58

Andrew: that's weird, the commit ID I was using it's not there anymore so it just used branch master as default, where things have changed. I have uploaded a new PKGBUILD, can you test?

Anonymous comment on 2011-11-12 16:38

I couldn't install it, had to change the "install" line to this:

python setup.py -q install --root="${pkgdir}"
install -m 755 ${srcdir}/${pkgname}/python/js-beautify $BINDIR/js-beautify || return 1

Both lines were taken from other PKGBUILDs, though, so I can't really be sure if everything's alright with them.

tokland commented on 2011-05-24 21:43

uses new python script, the binary path is the same: /usr/bin/js-beautify

tokland commented on 2011-05-24 21:33

btw, I just realized the python script that the first user mentioned is in fact the official one:

https://github.com/einars/js-beautify/blob/master/attic/readme.txt

March 27, 2011
"Here lay the scripts that were useful at a time, now they are kind of
obsoleted by the python script, but you may still find them useful."

So I guess I'll just this one and get rid of rhino.

tokland commented on 2011-05-24 21:21

1) rhino: indeed, I was unaware of that, I made a /usr/local/bin/rhino long ago and I forgot.

depends=('rhino-with-interpreter')

2) The paths have changed, but I'd prefer still to copy beautify-cl.js. Try

mkdir -p $SHAREDIR $BINDIR || return 1
install -m 644 ${srcdir}/${pkgname}/*.js $SHAREDIR || return 1
install -m 644 ${srcdir}/${pkgname}/attic/beautify-cl/beautify-cl.js $SHAREDIR || return 1
install -m 755 ${srcdir}/js-beautify.sh $BINDIR/js-beautify || return 1
}

this works for me