Package Details: html-builder-cli-git 3.0.0.r5.g696e94b-2

Git Clone URL: https://aur.archlinux.org/html-builder-cli-git.git (read-only, click to copy)
Package Base: html-builder-cli-git
Description: The fastest way to package an HTML project into a fully native desktop app
Upstream URL: https://github.com/yikuansun/html-builder-cli
Licenses: GPL3
Conflicts: html-builder-cli
Provides: html-builder-cli
Submitter: 0xGingi
Maintainer: 0xGingi
Last Packager: 0xGingi
Votes: 1
Popularity: 0.005690
First Submitted: 2023-08-15 02:12 (UTC)
Last Updated: 2023-10-13 14:50 (UTC)

Latest Comments

a821 commented on 2023-10-12 19:09 (UTC)

I look more into this and see that PKGBUILD is wrong. The package() function creates an empty package because it does nothing (you can verify this by inspecting the generated pkg.tar.zst file and see that is empty (just the meta-data files are there)).

I'm no expert in nodejs, but you could try something like this (remove the build() function)

package() {
   npm pack html-builder-cli
   npm install -g --prefix "$pkgdir/usr" html-builder-cli-*.tgz
}

At least it builds and the pkg.tar.zst contains files (ie, not empty)

a821 commented on 2023-10-12 13:17 (UTC)

It does not work: I get the following error when building in a chroot.

==> Starting pkgver()...
==> Starting build()...
npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path ../../../build/html-builder-cli-git/src/html-builder-cli
npm ERR! dest /usr/lib/node_modules/html-builder-cli
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink '../../../build/html-builder-cli-git/src/html-builder-cli' -> '/usr/lib/node_modules/html-builder-cli'
npm ERR!  [Error: EACCES: permission denied, symlink '../../../build/html-builder-cli-git/src/html-builder-cli' -> '/usr/lib/node_modules/html-builder-cli'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../../../build/html-builder-cli-git/src/html-builder-cli',
npm ERR!   dest: '/usr/lib/node_modules/html-builder-cli'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: /build/.npm/_logs/2023-10-12T13_05_19_301Z-debug-0.log
==> ERROR: A failure occurred in build().
    Aborting...