1 # Maintainer: Tim Meusel <tim@bastelfreak.de>
4 pkgname="ruby-${_gemname}"
7 pkgdesc='Parser construction library with great error reporting in Ruby'
9 url='http://kschiess.github.io/parslet/'
11 makedepends=('ruby-rspec' 'ruby-rdoc')
13 source=("https://github.com/kschiess/parslet/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
14 options=("!emptydirs")
15 sha512sums=('7177e979ad973e92e0fecad58f2a626b70071e47bc3f322c030a2a72f3b01815d25e6edc4ea2d741c6ca512840ce91da822071b68f431fdd0769c5d5a863ca68')
18 cd "${_gemname}-${pkgver}"
22 cd "${_gemname}-${pkgver}"
23 gem build "${_gemname}.gemspec"
27 cd "${_gemname}-${pkgver}"
28 # tests are disabled at the moment because ruby-ae/ruby-qed are currently missing in the repos
33 cd "${_gemname}-${pkgver}"
34 local _gemdir="$(gem env gemdir)"
35 gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
37 install -Dm 644 README HISTORY.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
38 mv example "${pkgdir}/usr/share/doc/${pkgname}/"
39 install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
41 rm -rf "${pkgdir}/${_gemdir}/cache"