# Contributor: Ed Robinson # Maintainer: Ed Robinson pkgname=yarn pkgver=0.27.5 pkgrel=0 pkgdesc="Fast, reliable, and secure dependency management for Node.js" url="https://yarnpkg.com/" arch="noarch" license="BSD-2" depends="nodejs" source="https://yarnpkg.com/downloads/$pkgver/$pkgname-v$pkgver.tar.gz apk-install-method.patch" builddir="$srcdir/dist" check() { cd "$builddir" ./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="a21615f3bf4996d6e2dc84b54c3e9ca8a58143941a80771121f6eb6f5dcf8fd655e1c9b9420e7a0ab3a7c26ecd6bdd3790451d76435d7e3d6fbb5ba8ac729dbd yarn-v0.27.5.tar.gz 30431f7aa5fe7382e062b92e413ea8d118e157d89aa043353c18ff7d1721d0e3ecfbe68de1f0058b3b70cee5cf9baa08d28f1718beb5d14fcb0cf2881dff1eac apk-install-method.patch"