pdf.js: update to 2.4.456.

This commit is contained in:
Daniel Santana 2020-06-02 02:47:27 -03:00 committed by Helmut Pozimski
parent 646fdb7089
commit 4e73937b61

View file

@ -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 <daniel@santana.tech>"
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/
}