1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 _gemname=minitest-power_assert
4 pkgname=ruby-${_gemname}
7 pkgdesc='Power Assert for Minitest'
8 url='https://github.com/hsbt/minitest-power_assert'
10 license=('custom:BSDL')
11 depends=('ruby' 'ruby-minitest' 'ruby-power_assert')
12 makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-bundler')
13 options=('!emptydirs')
14 source=(${url}/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)
15 sha512sums=('96b3d8c1899960a6d035b1de5fde5aba1235b89b7d11e416938269144532eb37afda0fa5896825b3bd74685cebb39fe43b39b9e4714212a7fdb28c396b886666')
16 b2sums=('7c2e687f572fb5d25203cdd1448052c6f380ba5f112c87fbb768416039f743869a23518c6d31d530eabfb1599e1c82f70b022a9f6c88bc16cf4ac8e1ea093176')
19 cd ${_gemname}-${pkgver}
20 sed 's|git ls-files -z|find -type f -print0\|sed "s,\\\\./,,g"|' -i ${_gemname}.gemspec
21 sed -r 's|~>|>=|g' -i ${_gemname}.gemspec
25 cd ${_gemname}-${pkgver}
26 gem build ${_gemname}.gemspec
30 cd ${_gemname}-${pkgver}
35 cd ${_gemname}-${pkgver}
36 local _gemdir="$(gem env gemdir)"
37 gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
38 -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
39 install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
40 install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
41 rm -r "${pkgdir}/${_gemdir}/cache"