1 # Maintainer: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
2 # Contributor: Mario Finelli <mario at finel dot li>
5 pkgname="ruby-${_gemname}"
8 pkgdesc="keeps your Ruby DSLs tame and well-behaved"
10 url='https://ms-ati.github.io/docile'
13 checkdepends=('ruby-rake' 'ruby-rspec' 'ruby-simplecov')
15 source=("https://github.com/ms-ati/docile/archive/v$pkgver/$_gemname-$pkgver.tar.gz")
16 sha512sums=('78350144a9b0d84d6025770d05b1e9999f34ce431691c08e73232f8b10537bc265f9f06409ff6feabf2e6f20d018dbb83aaf8c0f66e7dcec3e195475820481cd')
19 cd "${_gemname}-${pkgver}"
21 # we use an archive not a git checkout
22 sed --in-place --regexp-extended 's|git ls-files -z|find -print0|' "${_gemname}.gemspec"
26 cd "${_gemname}-${pkgver}"
28 gem build "${_gemname}.gemspec"
32 cd "${_gemname}-${pkgver}"
38 cd "${_gemname}-${pkgver}"
40 local _gemdir="$(gem env gemdir)"
45 --ignore-dependencies \
47 --install-dir "${pkgdir}/${_gemdir}" \
48 --bindir "${pkgdir}/usr/bin" \
49 "${_gemname}-${pkgver}.gem"
51 # remove unrepreducible files
52 rm --force --recursive --verbose \
53 "${pkgdir}/${_gemdir}/cache/" \
54 "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/vendor/" \
55 "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext/"
57 find "${pkgdir}/${_gemdir}/gems/" \
64 -iname "gem.build_complete" -o \
69 find "${pkgdir}/${_gemdir}/extensions/" \
72 -iname "mkmf.log" -o \
73 -iname "gem_make.out" \
77 install --verbose -D --mode=0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
78 install --verbose -D --mode=0644 *.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}"
81 # vim: set ts=2 sw=2 et: