1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
4 pkgdesc='Package management framework for Ruby'
8 url='https://rubygems.org/'
10 # To avoid circular dependency with ruby, move it to makedepends
14 source=(rubygems-$pkgver.zip::https://github.com/rubygems/rubygems/archive/v${pkgver}.zip
15 stop_so_duplication.patch
17 sha512sums=('bc90249cde3c885c2d33a0ff8861248d3ad89af925501dbde8950bdbecdbbb94a250b0db2ebb6b4288ff7c2c3a9f3b4bc00dfff239bb0ce0bfe7d631dfdffb6f'
18 '9919490bbf7dba979a1df7543e62eb3fca48e8a516e6b6ab0a73080952e1b58599b7f233259d122dc66bf93f032b434d70e0dd448a1cb86513f01acb51b2120e'
19 '8cafd14d414ee3c16aa94f79072bc6c100262f925dc1300e785846c3fabbbbffc1356b8e2223af5684e3340c55032d41231179ffa948bb12e01dbae0f4131911')
23 patch -p1 < ../stop_so_duplication.patch
29 # disable as it requires a lot of ruby-* dependencies
37 install -D -m644 "${srcdir}"/gemrc "${pkgdir}/etc/gemrc"
39 local rubyver=$(ruby --version | sed -r 's|^ruby ([[:digit:]]+\.[[:digit:]]+\.).*$|\1|')0
41 install -d "${pkgdir}/usr/lib/ruby/${rubyver}/"
42 install -D -m755 bin/gem "${pkgdir}/usr/bin/gem"
43 cp -r lib/* "${pkgdir}/usr/lib/ruby/${rubyver}/"
44 install -D -m644 MIT.txt "${pkgdir}/usr/share/licenses/rubygems/MIT.txt"