Update package version to 4.0.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: ruby
|
name: ruby
|
||||||
description: A dynamic, open source programming language with a focus on simplicity and productivity
|
description: A dynamic, open source programming language with a focus on simplicity and productivity
|
||||||
version: 3.4.8
|
version: 4.0.0
|
||||||
revision: 1
|
revision: 1
|
||||||
url: https://www.ruby-lang.org/en/
|
url: https://www.ruby-lang.org/en/
|
||||||
license: BSD-2-Clause
|
license: BSD-2-Clause
|
||||||
@@ -27,4 +27,12 @@ downloads:
|
|||||||
- url: https://cache.ruby-lang.org/pub/ruby/${BPM_PKG_VERSION%.*}/ruby-${BPM_PKG_VERSION}.tar.xz
|
- url: https://cache.ruby-lang.org/pub/ruby/${BPM_PKG_VERSION%.*}/ruby-${BPM_PKG_VERSION}.tar.xz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: 53a8ec71111449cbbd42224d8d27c493fa6ded228636731051c48604d4255d68
|
checksum: a72bacee9de07283ebc19baa4ac243b193129f21aa4e168c7186fb1fe7d07fe1
|
||||||
|
split_packages:
|
||||||
|
- name: ruby
|
||||||
|
optional_depends:
|
||||||
|
- ruby-docs
|
||||||
|
- name: ruby-docs
|
||||||
|
description: A dynamic, open source programming language with a focus on simplicity and productivity - Documentation
|
||||||
|
depends:
|
||||||
|
- ruby
|
||||||
|
|||||||
@@ -24,9 +24,17 @@ check() {
|
|||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package_ruby() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install-nodoc
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/BSDL "$BPM_OUTPUT"/usr/share/licenses/ruby/BSDL
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/ruby/COPYING
|
install -Dm644 "$BPM_SOURCE"/{BSDL,COPYING} -t "$BPM_OUTPUT"/usr/share/licenses/ruby/
|
||||||
|
}
|
||||||
|
|
||||||
|
package_ruby-docs() {
|
||||||
|
make DESTDIR="$BPM_OUTPUT" install-doc install-capi
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -d "$BPM_OUTPUT"/usr/share/licenses
|
||||||
|
ln -sf ruby "$BPM_OUTPUT"/usr/share/licenses/ruby-docs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user