void-packages/srcpkgs/pdf.js/template

24 lines
620 B
Bash
Raw Normal View History

2018-10-06 00:29:03 +00:00
# Template file for 'pdf.js'
pkgname=pdf.js
2018-11-09 21:15:38 +00:00
version=2.0.943
2018-10-06 00:29:03 +00:00
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/"
2018-11-09 21:15:38 +00:00
distfiles="https://github.com/mozilla/pdf.js/archive/v${version}.tar.gz"
checksum=4f48077b313f89b88a1f917e6c7ffa465f891667724daeacdca755295581e77d
2018-10-06 00:29:03 +00:00
do_build() {
npm install
2018-11-09 21:15:38 +00:00
npm install --no-save gulp-cli
2018-10-06 00:29:03 +00:00
node_modules/.bin/gulp generic
}
do_install() {
vmkdir usr/share/$pkgname
vcopy "build/generic/*" usr/share/$pkgname
}