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