wok-current view ruby-native-package-installer/receipt @ rev 24574

updated fribidi and fribidi-dev (1.0.8 -> 1.0.11)
author Hans-G?nter Theisgen
date Sun Feb 27 07:58:48 2022 +0100 (2022-02-27)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby-native-package-installer"
4 VERSION="1.0.9"
5 CATEGORY="development"
6 SHORT_DESC="Helper to install native packages on 'gem install'."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="LGPL3"
9 WEB_SITE="https://rubygems.org/gems/native-package-installer"
11 SOURCE="native-package-installer"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/ruby-gnome/$SOURCE/archive/$VERSION.tar.gz"
15 DEPENDS="ruby"
16 BUILD_DEPENDS="ruby-dev rubygems"
18 COOK_OPT="!repack_src !unpack"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')"
30 gem install \
31 --ignore-dependencies \
32 -i "$DESTDIR/$_gemdir" \
33 native-package-installer
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }