summaryrefslogblamecommitdiff
path: root/user/ruby-rspec-support/APKBUILD
blob: 2e4f838e2d1ffb5d9a0b0a6133e925f2c2a4ea55 (plain) (tree)
1
2
3
4
5
6
7
8



                                               
            

                                          
                                             



                                                      
              
                                                                                           

                     


                                    





                                                                












                                         
                                                                                                                                                                             
                                                                                                                                                
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=ruby-rspec-support
_gemname=${pkgname#ruby-}
pkgver=3.9.0
pkgrel=0
pkgdesc="Support utilities for RSpec gems"
url="https://rubygems.org/gems/rspec-support"
arch="noarch"
options="!check"  # rspec's tests are written in rspec
license="MIT"
depends="ruby"
makedepends=""
source="$pkgname-$pkgver.tar.gz::https://github.com/rspec/$_gemname/archive/v$pkgver.tar.gz
	gemspec.patch
	"
builddir="$srcdir/$_gemname-$pkgver"

build() {
	gem build $_gemname.gemspec
}

package() {
	local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"

	gem install --local \
		--install-dir "$gemdir" \
		--ignore-dependencies \
		--no-document \
		--verbose \
		$_gemname

	# Clean-up...
	rm -r "$gemdir"/cache \
		"$gemdir"/build_info \
		"$gemdir"/doc
}

sha512sums="10e8fa4af59097891219f00e2ced5940e7a5bc67d946fbd348683d2246a4a491e62f7bac6bb757e14d82bb0ba970fe5633609ca4ab2c97c4900719b8004cf4b5  ruby-rspec-support-3.9.0.tar.gz
e9d611ea1789e835f742aa92f1e668840139e2621898edf158dc53e111db4119a324da65d2d28f5c6e737c82f261f4adb3beb8c244ee01d2f618778ed62d3731  gemspec.patch"