1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
4 pkgname=ruby-${_gemname}
7 pkgdesc='Provide a simple way to create XML markup and data structures'
8 url='http://onestepback.org/'
12 makedepends=('ruby-rdoc' 'ruby-rake')
13 checkdepends=('ruby-minitest')
14 options=('!emptydirs')
15 source=(https://github.com/tenderlove/builder/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz
16 ruby30.patch::https://github.com/tenderlove/builder/pull/15/commits/6e530dccbb7278bfdc2ee21acf62184ab494fa93.patch)
17 sha512sums=('0aed47b4f0855510f446f0a500929fe59025e3d178036c627c04c7754f49e1d8f2893b1ec16b881f6f93d364c9e17f281f7a6742c6dd9c4fcd9cec938cbb1684'
18 '9dd3ef717786b52fb80d69fb6724bc38f0ddb61e00e4bf1bc6d51e8dda6e8fc39ab990da591cfa59fdeb4d64dd299725040c7d726357045ca28bd8fd588e21e0')
19 b2sums=('9ff3a96e1c918fb98026ac897f2b7d971249dad9b62936792e2c4bd2e249bc702311bd1ecbd35b0c9e28bc19b720fe26703c220527061fc4c2c57543f8d0568b'
20 '71057f8ff6c187a8af81bef93e82dbf14bc6ea9d2f2384941c5cbeacdc31efeccaddcc43b05e80d34e78a8eb5097f4f87414eecab541842d658188e6824fc499')
23 cd ${_gemname}-${pkgver}
24 patch -p1 < ../ruby30.patch
28 cd ${_gemname}-${pkgver}
33 cd ${_gemname}-${pkgver}
38 cd ${_gemname}-${pkgver}
39 local _gemdir="$(gem env gemdir)"
40 gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
41 -n "${pkgdir}/usr/bin" pkg/${_gemname}-${pkgver}.gem
43 install -Dm 644 README.md CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
44 install -Dm 644 MIT-LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
46 rm -r "${pkgdir}/${_gemdir}/cache"