slitaz-forge view scn/receipts/spruz/receipt @ rev 425
doc: continue to move to new style
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 15 14:56:46 2014 +0100 (2014-01-15) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="spruz"
4 VERSION="0.2.5"
5 CATEGORY="development"
6 SHORT_DESC="All the stuff that isn't good/big enough for a real library."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby"
9 BUILD_DEPENDS="rubygems"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/fastthread"
12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
18 cd $src
20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
22 gem install --no-rdoc --no-ri --ignore-dependencies \
23 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
30 mkdir -p $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 }