New package: pdf.js-1.10.100

This commit is contained in:
Daniel Santana 2018-10-05 21:29:03 -03:00 committed by maxice8
parent 7eb5eddcc0
commit 35d88e6083

23
srcpkgs/pdf.js/template Normal file
View file

@ -0,0 +1,23 @@
# Template file for 'pdf.js'
pkgname=pdf.js
version=1.10.100
revision=1
noarch=yes
hostmakedepends="nodejs"
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/${version}.tar.gz"
checksum=6f55b1eb85e8912296c6540e8b2e09a96f832caf9a0eba41a7a0acc41ec74cf6
do_build() {
npm install --no-save gulp-cli
npm install
node_modules/.bin/gulp generic
}
do_install() {
vmkdir usr/share/$pkgname
vcopy "build/generic/*" usr/share/$pkgname
}