wok-6.x view daemon_controller/receipt @ rev 25563
New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri May 05 18:12:18 2023 +0200 (18 months ago) |
parents | 751f57d78a3d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="daemon_controller"
4 VERSION="1.2.0"
5 CATEGORY="development"
6 SHORT_DESC="Daemon management for Ruby."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/daemon_controller"
11 TARBALL="$PACKAGE-$VERSION.gem"
12 WGET_URL="https://rubygems.org/downloads/$TARBALL"
14 DEPENDS="ruby"
15 BUILD_DEPENDS="ruby-dev"
17 COOK_OPT="!repack_src !unpack"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/\/versions\//!d;s|.*versions/||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
30 gem install \
31 --ignore-dependencies \
32 -i "$DESTDIR/$_gemdir" \
33 $SOURCES_REPOSITORY/$TARBALL
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }