void-packages/srcpkgs/pdf.js/template
2019-02-21 21:48:32 +01:00

30 lines
896 B
Bash

# Template file for 'pdf.js'
pkgname=pdf.js
version=2.1.266
revision=1
archs=noarch
hostmakedepends="nodejs python pkgconf"
makedepends="pixman-devel cairo-devel pango-devel libjpeg-turbo-devel"
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=53d0db26c95946d79fc46b61bf1d0c54a3f103c5c8150dbcf6d9cf13a1b15040
nocross="doesn't respect CFLAGS"
case "${XBPS_TARGET_MACHINE}" in
i686*) broken="https://build.voidlinux.org/builders/i686_builder/builds/15674/steps/shell_3/logs/stdio" ;;
esac
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
}