parent
5b5f162b43
commit
d64cf051be
2 changed files with 43 additions and 0 deletions
10
srcpkgs/yarn/patches/yarn-bundle-entry.patch
Normal file
10
srcpkgs/yarn/patches/yarn-bundle-entry.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- bin/yarn-bundle-entry.js.orig 2017-07-04 18:50:29.701379167 -0500
|
||||
+++ bin/yarn-bundle-entry.js 2017-07-04 17:27:32.749746288 -0500
|
||||
@@ -3,5 +3,5 @@
|
||||
/* eslint-disable flowtype/require-valid-file-annotation */
|
||||
'use strict';
|
||||
|
||||
-require('../lib/v8-compile-cache');
|
||||
-module.exports = require('../lib/yarn-cli');
|
||||
+require('/usr/lib/yarn/v8-compile-cache');
|
||||
+module.exports = require('/usr/lib/yarn/yarn-cli');
|
33
srcpkgs/yarn/template
Normal file
33
srcpkgs/yarn/template
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Template file for 'yarn'
|
||||
pkgname=yarn
|
||||
version=0.27.5
|
||||
revision=1
|
||||
hostmakedepends="yarn-bin"
|
||||
depends="nodejs"
|
||||
short_desc="Fast, reliable, and secure dependency management"
|
||||
maintainer="Nicklaus McClendon <nicklaus@kulinacs.com>"
|
||||
license="2-cause-BSD"
|
||||
homepage="https://yarnpkg.com/"
|
||||
distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz"
|
||||
conflicts="yarn-bin>=0"
|
||||
checksum=3b2ca8bf155e6157382e4f99ec9d84a53821344b475ea1cda486531372977bf4
|
||||
|
||||
pre_build() {
|
||||
yarn
|
||||
}
|
||||
|
||||
do_build() {
|
||||
yarn run build-dist
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir /usr/lib/yarn
|
||||
vmkdir /usr/bin
|
||||
vcopy dist/lib/v8-compile-cache.js /usr/lib/yarn
|
||||
vcopy dist/lib/yarn-cli.js /usr/lib/yarn
|
||||
vbin dist/bin/yarn.js yarn
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
Reference in a new issue