upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lolcat / repos / community-any / PKGBUILD
blob52ba7b2f6454190f866cbdc024103be1a4c2a07c
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Gordin <9ordin @t gmail dot com>
4 pkgname=lolcat
5 pkgver=100.0.1
6 pkgrel=1
7 pkgdesc='Okay, no unicorns. But rainbows!!'
8 url='https://github.com/busyloop/lolcat'
9 arch=('any')
10 license=('custom')
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')
17 prepare() {
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
25 build() {
26   cd ${pkgname}-${pkgver}
27   gem build lolcat.gemspec
30 package() {
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"
44 # vim: ts=2 sw=2 et: