slitaz-forge diff scn/receipts/spruz/receipt @ rev 662

tank: include sup-demo package on up-scn
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 24 08:53:29 2017 +0100 (2017-02-24)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scn/receipts/spruz/receipt	Fri Feb 24 08:53:29 2017 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="spruz"
     1.7 +VERSION="0.2.5"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="All the stuff that isn't good/big enough for a real library."
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS="ruby"
    1.12 +BUILD_DEPENDS="rubygems"
    1.13 +TARBALL="$PACKAGE-$VERSION.gem"
    1.14 +WEB_SITE="http://rubygems.org/gems/fastthread"
    1.15 +WGET_URL="http://rubygems.org/downloads/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	[ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
    1.21 +	cd $src
    1.22 +
    1.23 +	RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
    1.24 +	
    1.25 +	gem install --no-rdoc --no-ri --ignore-dependencies \
    1.26 +		--install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
    1.33 +	mkdir -p $fs/usr
    1.34 +	
    1.35 +	cp -a $_pkg/usr/lib $fs/usr
    1.36 +}
    1.37 +