blob: 2ea9b59e61b30caa82999dacb1bad27a29fb9049 (
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
32
33
34
35
36
|
# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=yarn
pkgver=1.22.4
pkgrel=0
pkgdesc="Fast, reliable, and secure dependency management for Node.js"
url="https://yarnpkg.com/"
arch="noarch !mips64"
license="BSD-2-Clause"
options="!check" # No test suite
depends="nodejs"
source="https://yarnpkg.com/downloads/$pkgver/yarn-v$pkgver.tar.gz
apk-install-method.patch
"
builddir="$srcdir/$pkgname-v$pkgver"
check() {
./bin/yarn --version
}
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="a1833b862fe52169bd6c2a033045a07df5bc6a23595c259e675fed1b2d035ab37abe6ce309720abb6636d68f03615054b6292dc0a70da31c8697fda228b50d18 yarn-v1.22.4.tar.gz
30431f7aa5fe7382e062b92e413ea8d118e157d89aa043353c18ff7d1721d0e3ecfbe68de1f0058b3b70cee5cf9baa08d28f1718beb5d14fcb0cf2881dff1eac apk-install-method.patch"
|