mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ruby-rake-compiler
|
|
_gemname=${pkgname#ruby-}
|
|
pkgver=1.0.7
|
|
pkgrel=0
|
|
pkgdesc="Provide a standard and simplified way to build and package Ruby extensions"
|
|
url="https://github.com/rake-compiler/rake-compiler"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="ruby ruby-rake"
|
|
checkdepends="ruby-rspec"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rake-compiler/$_gemname/archive/v$pkgver.tar.gz
|
|
gemfile-remove-unwanted-files.patch"
|
|
builddir="$srcdir/$_gemname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
gem build $_gemname.gemspec
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
rspec spec
|
|
}
|
|
|
|
package() {
|
|
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
|
|
|
cd "$builddir"
|
|
|
|
gem install --local \
|
|
--install-dir "$gemdir" \
|
|
--bindir "$pkgdir/usr/bin" \
|
|
--ignore-dependencies \
|
|
--no-document \
|
|
--verbose \
|
|
$_gemname
|
|
|
|
# Remove unnecessary files and empty directories.
|
|
cd "$gemdir"
|
|
rm -r cache build_info doc
|
|
}
|
|
|
|
sha512sums="fa901f5cc48891f07bd8d9a27cf4e745e87d5a667dbee0c9f4b43f9564fdfe3067b9c658f10ea8bcacd32ea7320a542ef0fca9373147057472f5572a4a4c5268 ruby-rake-compiler-1.0.7.tar.gz
|
|
e68672541d62898bc72fb7e40f16bc75ed1d46eabedd18da60a6f0673d67bf63d990e191fb41d6034e3f6361662807030cbd8f0c817223a5d03c46a3a664f855 gemfile-remove-unwanted-files.patch"
|