1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Gordin <9ordin @t gmail dot com>
7 pkgdesc='Okay, no unicorns. But rainbows!!'
8 url='https://github.com/busyloop/lolcat'
11 depends=('ruby' 'ruby-paint' 'ruby-optimist' 'ruby-manpages')
12 options=('!emptydirs')
13 source=(https://github.com/busyloop/lolcat/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
14 sha256sums=('3f4127e022a55cf201f167c57ffcffbb3ba3f2bd2cbd9dd6358de4208029ae08')
15 sha512sums=('23775e63e6265dc7fadc0849dffa79812c2a7e5ddd5301355e03a05388a64689cd6d830820852ae198cb719ab2161effb85d5c1a33f83d5d1c5cd8d8a774acb0')
18 cd ${pkgname}-${pkgver}
19 sed -r 's|~>|>=|g' -i lolcat.gemspec
20 sed 's|git ls-files -- bin/\*|find bin -type f|' -i lolcat.gemspec
21 sed 's|git ls-files -- {test,spec,features}/*|echo|' -i lolcat.gemspec
22 sed 's|git ls-files|find -type f|' -i lolcat.gemspec
26 cd ${pkgname}-${pkgver}
27 gem build lolcat.gemspec
31 cd ${pkgname}-${pkgver}
32 local _gemdir="$(gem env gemdir)"
33 gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
34 -n "${pkgdir}/usr/bin" ${pkgname}-${pkgver}.gem
36 install -Dm 644 "${pkgdir}/${_gemdir}/gems/lolcat-${pkgver}/man/lolcat.6" \
37 -t "${pkgdir}/usr/share/man/man6"
38 install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
39 install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
41 rm "${pkgdir}/${_gemdir}/cache/${pkgname}-${pkgver}.gem"