void-packages/srcpkgs/pdf.js/template
2018-10-10 09:27:04 -03:00

23 lines
620 B
Bash

# 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
}