blob: 0dbce4616f1087c9ca1eb4f68e9b20f5cb93e81e (
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
|
# Maintainer: Ícar N. S. <aur@icarns.xyz>
pkgname=yarn-berry
pkgver=4.5.3
pkgrel=1
pkgdesc='Fast, reliable, and secure dependency management - Active development trunk'
arch=(any)
provides=('yarn')
conflicts=('yarn')
url='https://yarnpkg.com/'
license=('BSD')
depends=('nodejs')
source=("https://github.com/yarnpkg/berry/archive/refs/tags/@yarnpkg/cli/$pkgver.tar.gz")
sha256sums=('22f75669548c66334f22ee4b0f2d236f188b8818b8c84fecc851dcf5745ea8e3')
package() {
cd berry--yarnpkg-cli-${pkgver}
install -dm755 "$pkgdir"/usr/lib/node_modules/yarn
cp -R * "$pkgdir"/usr/lib/node_modules/yarn
chmod +x "$pkgdir"/usr/lib/node_modules/yarn/packages/yarnpkg-cli/bin/yarn.js
install -dm755 "$pkgdir"/usr/bin
ln -s /usr/lib/node_modules/yarn/packages/yarnpkg-cli/bin/yarn.js "$pkgdir"/usr/bin/yarn
ln -s /usr/lib/node_modules/yarn/packages/yarnpkg-cli/bin/yarn.js "$pkgdir"/usr/bin/yarnpkg
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|