aboutsummaryrefslogtreecommitdiffstats
path: root/community/yarn/APKBUILD
blob: d0735c7aee8bc31382d90571a4aec89e3a08c0c8 (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
25
26
27
28
29
30
31
# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=yarn
pkgver=0.24.6
pkgrel=0
pkgdesc="Fast, reliable, and secure dependency management for Node.js"
url="https://yarnpkg.com/"
arch="noarch"
license="BSD-2"
depends="nodejs"
options="!check"
source="https://yarnpkg.com/downloads/$pkgver/$pkgname-v$pkgver.tar.gz
	apk-install-method.patch"
builddir="$srcdir/dist"

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

	mkdir -p "$pkgdir"/$destdir
	cp -R "$builddir"/* "$pkgdir"/$destdir/

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

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

sha512sums="470189d4f7c12ef4c25dc29157da034424d5df66eb36a70b02aeedbdd21fd95db93c7119ea94c80c9a78cb08eb09786c9a23e96238a9dd313993763835191717  yarn-v0.24.6.tar.gz
30431f7aa5fe7382e062b92e413ea8d118e157d89aa043353c18ff7d1721d0e3ecfbe68de1f0058b3b70cee5cf9baa08d28f1718beb5d14fcb0cf2881dff1eac  apk-install-method.patch"