wok-next view ruby-ffi/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby-ffi"
4 VERSION="1.9.25"
5 CATEGORY="ruby"
6 SHORT_DESC="Ruby FFI library"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/${PACKAGE#*-}"
10 REPOLOGY="${PACKAGE/-/:}"
12 TARBALL="${PACKAGE#*-}-$VERSION.gem"
13 WGET_URL="https://rubygems.org/downloads/$TARBALL"
15 COOKOPTS="force-arch" # arch-specific paths
17 BUILD_DEPENDS="ruby-dev symlinks"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 gem install \
22 --no-document \
23 --ignore-dependencies \
24 --no-user-install \
25 --build-root $install \
26 $src/$TARBALL &&
27 fix gem &&
28 chmod -R g-w $install &&
29 symlinks -cr $install # fix symlink contain /home/slitaz/wok/... in the target
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 *-dev)
35 copy @ruby-dev
36 ;;
37 *)
38 copy @ruby
39 DEPENDS="ruby"
40 ;;
41 esac
42 }