summaryrefslogtreecommitdiff
path: root/repo/yarn/yarn.xibuild
blob: 8e4865b0c67f58dc947232a2056b81b3c7ed488d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

NAME="yarn"
DESC="Fast, reliable, and secure dependency management for Node.js"

MAKEDEPS=""

PKG_VER=1.22.19
SOURCE="https://yarnpkg.com/downloads/$PKG_VER/yarn-v$PKG_VER.tar.gz"

package() {
	local destdir="usr/share/node_modules/yarn"

	mkdir -p "$PKG_DEST"/$destdir
	cp -R "$BUILD_ROOT"/* "$PKG_DEST"/$destdir/

	# Remove windows specific files.
	rm "$PKG_DEST"/$destdir/bin/*.cmd

	mkdir -p "$PKG_DEST"/usr/bin
	ln -s /$destdir/bin/yarn "$PKG_DEST"/usr/bin/yarn
	ln -s /$destdir/bin/yarn "$PKG_DEST"/usr/bin/yarnpkg
}