upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ruby-fuubar / trunk / PKGBUILD
blobc2e8d19bfc221eab8337ddc66caa80e19ed0fc96
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-fuubar
4 pkgver=2.5.1
5 pkgrel=1
6 pkgdesc='The instafailing RSpec progress bar formatter'
7 arch=(any)
8 url='https://github.com/thekompanee/fuubar'
9 license=(MIT)
10 depends=(ruby-rspec-core ruby-ruby-progressbar)
11 checkdepends=(ruby-rspec)
12 options=(!emptydirs)
13 source=(https://github.com/thekompanee/fuubar/archive/releases/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('0188e92c6b8582c3bad9de2d8584d46c47b3ed3550648e9b591149605b6d4b06')
16 prepare() {
17   cd fuubar-releases-v$pkgver
18   sed -e 's/~>/>=/' -e '/signing_key/d' -i fuubar.gemspec
21 build() {
22   local _gemdir="$(gem env gemdir)"
23   cd fuubar-releases-v$pkgver
24   gem build fuubar.gemspec
25   gem install \
26     --local \
27     --verbose \
28     --ignore-dependencies \
29     --no-user-install \
30     --install-dir "tmp_install/$_gemdir" \
31     --bindir "tmp_install/usr/bin" \
32     fuubar-$pkgver.gem
33   find "tmp_install/$_gemdir/gems/" \
34     -type f \
35     \( \
36         -iname "*.o" -o \
37         -iname "*.c" -o \
38         -iname "*.so" -o \
39         -iname "*.time" -o \
40         -iname "gem.build_complete" -o \
41         -iname "Makefile" \
42     \) \
43     -delete
44   rm -r tmp_install/$_gemdir/cache
47 check() {
48   local _gemdir="$(gem env gemdir)"
49   cd fuubar-releases-v$pkgver
50   GEM_HOME="tmp_install/$_gemdir" rspec
53 package() {
54   cd fuubar-releases-v$pkgver
55   cp -a tmp_install/* "$pkgdir"/
56   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/