diff --git a/srcpkgs/pdf.js/template b/srcpkgs/pdf.js/template new file mode 100644 index 00000000000..41938d6ecf3 --- /dev/null +++ b/srcpkgs/pdf.js/template @@ -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 " +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 +}