aports/testing/yarn-berry/APKBUILD
2025-04-04 05:35:27 +00:00

33 lines
1 KiB
Text

maintainer="Fabricio Silva <hi@fabricio.dev>"
pkgname=yarn-berry
pkgver=4.8.1
pkgrel=0
pkgdesc="Fast, reliable, and secure dependency management for Node.js - Active development version"
url="https://yarnpkg.com/"
license="BSD-2-Clause"
arch="noarch"
depends="!yarn nodejs" # not backward compatible with yarn classic (v1)
source="$pkgname-$pkgver.tgz::https://registry.npmjs.org/@yarnpkg/cli-dist/-/cli-dist-$pkgver.tgz"
builddir="$srcdir/package"
replaces="yarn"
check() {
./bin/yarn.js --version
./bin/yarn.js --help
}
package() {
local destdir="usr/share/node_modules/@yarnpkg/cli-dist"
mkdir -p "$pkgdir"/$destdir/bin
install -Dm0644 package.json -t "$pkgdir"/$destdir
install -Dm0755 bin/yarn.js -t "$pkgdir"/$destdir/bin
mkdir -p "$pkgdir"/usr/bin
ln -s ../share/node_modules/@yarnpkg/cli-dist/bin/yarn.js "$pkgdir"/usr/bin/yarn
ln -s yarn "$pkgdir"/usr/bin/yarnpkg
}
sha512sums="
fdb88c3d1388181c2ce66687aaa04e9afe159fa66fd447d74f5abc6d75a3fb99e2cedc20103d8d5ff3576d084f76fc8d8cfd83ddaabc3a47653824062df19ca7 yarn-berry-4.8.1.tgz
"