diff --git a/pkg.info b/pkg.info index 4d55779..32061c2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: ruby description: A dynamic, open source programming language with a focus on simplicity and productivity -version: 3.4.8 +version: 4.0.0 revision: 1 url: https://www.ruby-lang.org/en/ 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 extract_to: ${BPM_SOURCE} 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 diff --git a/source.sh b/source.sh index 7c976a6..8b456df 100644 --- a/source.sh +++ b/source.sh @@ -24,9 +24,17 @@ check() { # The package function is executed in the source directory # This function is used to move the compiled files into the output directory -package() { - make DESTDIR="$BPM_OUTPUT" install +package_ruby() { + make DESTDIR="$BPM_OUTPUT" install-nodoc - install -Dm644 "$BPM_SOURCE"/BSDL "$BPM_OUTPUT"/usr/share/licenses/ruby/BSDL - install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/ruby/COPYING + # Install package license + 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 }