diff --git a/srcpkgs/pdf.js/template b/srcpkgs/pdf.js/template index 4b00a085d4d..d7bf9f68ffa 100644 --- a/srcpkgs/pdf.js/template +++ b/srcpkgs/pdf.js/template @@ -1,31 +1,18 @@ # Template file for 'pdf.js' pkgname=pdf.js -version=2.3.200 +version=2.4.456 revision=1 archs=noarch -hostmakedepends="nodejs python pkg-config" -makedepends="pixman-devel cairo-devel pango-devel libjpeg-turbo-devel" +create_wrksrc=yes short_desc="Portable Document Format (PDF) viewer built with HTML5" maintainer="Daniel Santana " license="Apache-2.0" homepage="https://mozilla.github.io/pdf.js/" -distfiles="https://github.com/mozilla/pdf.js/archive/v${version}.tar.gz" -checksum=b0f95b7a56187a04fcba11242df5285f1f3cc99ce86be269ca033820098e667d - -nocross="doesn't respect CFLAGS" - -case "${XBPS_TARGET_MACHINE}" in - i686*) broken="https://build.voidlinux.org/builders/i686_builder/builds/15674/steps/shell_3/logs/stdio" ;; - ppc*) broken="attempts to build v8 and fails" ;; -esac - -do_build() { - npm install - npm install --no-save gulp-cli - node_modules/.bin/gulp generic -} +distfiles="https://github.com/mozilla/pdf.js/releases/download/v${version}/pdfjs-${version}-es5-dist.zip" +checksum=f40f7bc4d96cc430c858ef26da2708b5a4669b6316278b67251a95f9a8fdff5d do_install() { - vmkdir usr/share/$pkgname - vcopy "build/generic/*" usr/share/$pkgname + vmkdir usr/share/$pkgname/ + vcopy web usr/share/$pkgname/ + vcopy build usr/share/$pkgname/ }