Package Details: nodejs-decktape 3.0.0-1

Git Clone URL: https://aur.archlinux.org/nodejs-decktape.git (read-only, click to copy)
Package Base: nodejs-decktape
Description: PDF exporter for HTML presentation frameworks
Upstream URL: https://github.com/astefanutti/decktape
Licenses: MIT
Submitter: pat-s
Maintainer: TheGoliath
Last Packager: TheGoliath
Votes: 3
Popularity: 0.000072
First Submitted: 2018-03-09 22:09
Last Updated: 2020-06-08 13:12

Latest Comments

TheGoliath commented on 2020-06-08 13:13

@Alfred456654 Updated the package :)

Alfred456654 commented on 2020-06-08 11:54

PKGBUILD for v3.0.0:

# Maintainer: Patrick Schratz <patrick.schratz@gmail.com>
# Adapted from nodejs-mkdirp

pkgname=nodejs-decktape
_npmname=decktape
pkgver=3.0.0
pkgrel=0
pkgdesc='PDF exporter for HTML presentation frameworks'
arch=('any')
url='https://github.com/astefanutti/decktape'
license=('MIT')
depends=('npm' 'nodejs')
source=("${_npmname}-${pkgver}.tar.gz::https://github.com/astefanutti/"${_npmname}"/archive/v"${pkgver}".tar.gz")
md5sums=('b8df8d6cf3563ec449dd5b3b415252c9')

package() {
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver

  find "$pkgdir/usr/bin" -type d -exec chmod 755 '{}' +
  find "$pkgdir/usr/lib/node_modules" -type d -exec chmod -R 755 '{}' +

  install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

dcaixinha commented on 2020-04-13 12:05

Have the same error as the one reported by @plaxx.

plaxx commented on 2020-02-17 15:12

Can't build node-gyp:

node-pre-gyp WARN Using needle for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(404): https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.108/node-v79-linux-x64-glibc.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for hummus@1.0.108 and node@13.8.0 (node-v79 ABI, glibc) (falling back to source compile with node-gyp) 

[...]

../src/PDFDictionaryDriver.cpp: In static member function ‘static void PDFDictionaryDriver::ToJSObject(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/PDFDictionaryDriver.cpp:78:110: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Value>)’
   78 |         result->Set(NEW_STRING(it.GetKey()->GetValue().c_str()),driver->holder->GetInstanceFor(it.GetValue()));
      |                                                                                                              ^
In file included from /home/olivier/.cache/node-gyp/13.8.0/include/node/node.h:63,
                 from ../src/nodes.h:3,
                 from ../src/PDFDictionaryDriver.h:22,
                 from ../src/PDFDictionaryDriver.cpp:20:
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
 3547 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
      |                                     ^~~
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3547:37: note:   candidate expects 3 arguments, 2 provided
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
 3550 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
      |                                     ^~~
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3550:37: note:   candidate expects 3 arguments, 2 provided
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/olivier/.cache/node-gyp/13.8.0/include/node/node_object_wrap.h:85:78:   required from here
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
10400 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [hummus.target.mk:159: Release/obj.target/hummus/src/PDFDictionaryDriver.o] Error 1
make: Leaving directory '/home/olivier/.cache/aurman/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/hummus/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.101-1-lts

pat-s commented on 2019-10-13 13:48

@meriops I think I resolved it. You might need to uninstall/install the package to get rid of the messages.

meriops commented on 2019-10-09 17:16

With the latest version, I get the warning "directory permissions differ (...) filesystem 755 package 777". Anybody else gets that?

pat-s commented on 2018-05-29 15:39

We currently have problems to get the package building with the latest version. Actively working on it here: https://github.com/astefanutti/decktape/issues/136.

paulmelis commented on 2018-05-29 11:30

Different error here:

make: Leaving directory '/home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/hummus/build'

puppeteer@0.12.0 install /home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/puppeteer node install.js

Downloading Chromium r508693 - 96.2 Mb [====================] 100% 0.0s Chromium downloaded to /home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/linux-508693 + decktape@2.8.0 added 97 packages from 51 contributors in 32.598s rmdir: failed to remove '/home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/etc': No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

OdinEidolon commented on 2018-03-26 10:13

I'm getting this error, no matter which options or presentations I try:

Error: spawn EACCES
    at ChildProcess.spawn (internal/child_process.js:330:11)
    at Object.exports.spawn (child_process.js:500:9)
    at Function.launch (/usr/lib/node_modules/decktape/node_modules/puppeteer/lib/Launcher.js:100:40)
    at <anonymous>