1 # Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
4 pkgname="ruby-${_gemname}"
7 pkgdesc='URIs for your models makes it easy to pass references around'
9 url='https://github.com/rails/globalid'
12 depends=('ruby' 'ruby-activesupport')
13 makedepends=('ruby-bundler' 'ruby-rake')
14 #checkdepends=('ruby-activemodel')
15 source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
16 sha512sums=('228c672aa2934a726677e11a90124767f302910791153b68024aa8b44921f2ed1444903ac592c46240f19c9dae25c170405ac2a21fc269c573b066d4cd34b04d')
19 cd "${_gemname}-${pkgver}"
21 # update gemspec/Gemfile to allow newer version of the dependencies
22 sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec"
27 cd "${_gemname}-${pkgver}"
32 # TODO: Tests are disabled for now as there is a cyclic dependency between this package and ruby-rails
34 # cd "${_gemname}-${pkgver}"
40 cd "${_gemname}-${pkgver}"
42 local _gemdir="$(gem env gemdir)"
44 gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "pkg/${_gemname}-${pkgver}.gem"
46 rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
48 install -Dm 644 MIT-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
49 install -Dm 644 CHANGELOG.md CONTRIBUTING.md README.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}"