wok-next view ruby-fiddle/receipt @ rev 21084

Add librefox
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 25 14:44:32 2018 +0200 (2018-12-25)
parents
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby-fiddle" # ruby-stdlib already provides fiddle
4 VERSION="1.0.0"
5 CATEGORY="ruby"
6 SHORT_DESC="A libffi wrapper for Ruby"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://rubygems.org/gems/${PACKAGE#*-}"
10 HOST_ARCH="any"
11 REPOLOGY="${PACKAGE/-/:}"
13 TARBALL="${PACKAGE#*-}-$VERSION.gem"
14 WGET_URL="https://rubygems.org/downloads/$TARBALL"
16 BUILD_DEPENDS="ruby-dev"
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 gem install \
21 --no-document \
22 --ignore-dependencies \
23 --no-user-install \
24 --build-root $install \
25 $src/$TARBALL &&
26 fix gem
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 *-dev)
32 copy @ruby-dev
33 ;;
34 *)
35 copy @ruby
36 DEPENDS="ruby"
37 ;;
38 esac
39 }