Skip to content
Snippets Groups Projects
Commit e716e6e8 authored by Andreas Schleifer's avatar Andreas Schleifer
Browse files

fix rm commands for de-vendored stdlib gems

parent 110de3ac
No related branches found
Tags 3.1.0-2
No related merge requests found
......@@ -8,7 +8,7 @@
pkgname=(ruby ruby-docs ruby-stdlib ruby-bundledgems)
pkgver=3.0.4
pkgrel=10
pkgrel=11
arch=(x86_64)
url='https://www.ruby-lang.org/en/'
license=(BSD custom)
......@@ -95,7 +95,6 @@ package_ruby() {
digest
drb
english
English
erb
etc
fcntl
......@@ -125,12 +124,15 @@ package_ruby() {
for stdlib_gem in "${stdlib_gems[@]}"; do
rm --force --recursive --verbose \
"${pkgdir}"/usr/lib/ruby/${rubyver}/${stdlib_gem}* \
"${pkgdir}"/usr/lib/ruby/${rubyver}/${stdlib_gem} \
"${pkgdir}"/usr/lib/ruby/${rubyver}/${stdlib_gem}.rb \
"${pkgdir}"/usr/lib/ruby/${rubyver}/x86_64-linux/${stdlib_gem}.so \
"${pkgdir}"/usr/lib/ruby/gems/${rubyver}/specifications/default/${stdlib_gem}-*.gemspec
done
rm "${pkgdir}"/usr/lib/ruby/${rubyver}/x86_64-linux/io/wait.so
rm --verbose \
"${pkgdir}"/usr/lib/ruby/${rubyver}/English.rb \
"${pkgdir}"/usr/lib/ruby/${rubyver}/x86_64-linux/io/wait.so
}
package_ruby-docs() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment