void-packages/srcpkgs/pdf.js/template

24 lines
620 B
Bash

# Template file for 'pdf.js'
pkgname=pdf.js
version=2.0.943
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/v${version}.tar.gz"
checksum=4f48077b313f89b88a1f917e6c7ffa465f891667724daeacdca755295581e77d
do_build() {
npm install
npm install --no-save gulp-cli
node_modules/.bin/gulp generic
}
do_install() {
vmkdir usr/share/$pkgname
vcopy "build/generic/*" usr/share/$pkgname
}