summaryrefslogblamecommitdiff
path: root/user/ruby-rspec-expectations/APKBUILD
blob: 68c6dc95e3e240bfd6a9c1f3db4893d41755f840 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                                               
            






                                                                                         
              
                                                                                           

                     


                                    



                                   
                                                          
 












                                         
                                                                                                                                                                                  
                                                                                                                                                
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=ruby-rspec-expectations
_gemname=${pkgname#ruby-}
pkgver=3.9.2
pkgrel=0
pkgdesc="Provides a readable API to express expected outcomes of a code example in RSpec"
url="https://relishapp.com/rspec/rspec-expectations/"
arch="noarch"
options="!check"  # rspec's tests are written in rspec
license="MIT"
depends="ruby ruby-diff-lcs ruby-rspec-support~=${pkgver%.*}"
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() {
	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="d3ae1c93e936acc2278b5beaded9255ef78e3e9d0fed1cc9a14010930a396841bf4937cade164d0c9f4f2e4cafad86ab511309156e45387b624907365e7e611a  ruby-rspec-expectations-3.9.2.tar.gz
1d477004521852e23d01b197187dbb434a2c7fd179e506c82a12e17f5d52470fe2a113112e7052b9479077eafa6759beb07c03301de1f8ea7f5c4643c92d8346  gemspec.patch"