name='yarn'
version='1.22.22' release='3'
This commit is contained in:
parent
8a392bd128
commit
b03f3e33e8
13
yarn/alr.sh
13
yarn/alr.sh
@ -1,6 +1,6 @@
|
|||||||
name='yarn'
|
name='yarn'
|
||||||
version='1.22.22'
|
version='1.22.22'
|
||||||
release='2'
|
release='3'
|
||||||
desc='Fast, reliable, and secure dependency management.'
|
desc='Fast, reliable, and secure dependency management.'
|
||||||
homepage='https://classic.yarnpkg.com/'
|
homepage='https://classic.yarnpkg.com/'
|
||||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||||
@ -25,10 +25,9 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local mod_dir=/usr/lib/node_modules/$name
|
install -d "$pkgdir"/{usr/bin,/usr/lib/node_modules/$name/bin}
|
||||||
install -d "$pkgdir"/{usr/bin,$mod_dir/bin}
|
ln -s $/usr/lib/node_modules/$name/bin/$name.js "$pkgdir"/usr/bin/$name
|
||||||
ln -s $mod_dir/bin/$name.js "$pkgdir"/usr/bin/$name
|
ln -s $/usr/lib/node_modules/$name/bin/$name.js "$pkgdir"/usr/bin/${name}pkg
|
||||||
ln -s $mod_dir/bin/$name.js "$pkgdir"/usr/bin/${name}pkg
|
|
||||||
|
|
||||||
cd $name
|
cd $name
|
||||||
# Prune unnecessary packages
|
# Prune unnecessary packages
|
||||||
@ -41,8 +40,8 @@ package() {
|
|||||||
readarray -t punycode_importers < <(rg -t js -l "require\('punycode'\)" node_modules)
|
readarray -t punycode_importers < <(rg -t js -l "require\('punycode'\)" node_modules)
|
||||||
sed -i "s,require('punycode'),require('punycode/')," "${punycode_importers[@]}"
|
sed -i "s,require('punycode'),require('punycode/')," "${punycode_importers[@]}"
|
||||||
|
|
||||||
cp -r lib node_modules package.json "$pkgdir"/$mod_dir
|
cp -r lib node_modules package.json "$pkgdir"/usr/lib/node_modules/$name
|
||||||
install -t "$pkgdir"/$mod_dir/bin bin/$name.js
|
install -t "$pkgdir"/usr/lib/node_modules/$name/bin bin/$name.js
|
||||||
install -Dm644 -t "$pkgdir"/usr/share/doc/$name README.md
|
install -Dm644 -t "$pkgdir"/usr/share/doc/$name README.md
|
||||||
install -Dm644 -t "$pkgdir"/usr/share/licenses/$name LICENSE
|
install -Dm644 -t "$pkgdir"/usr/share/licenses/$name LICENSE
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user