wok annotate facter/receipt @ rev 25687

updated sc-im (0.8.2 -> 0.8.3)
author Hans-G?nter Theisgen
date Thu Apr 11 14:51:51 2024 +0100 (7 months ago)
parents 1be16cc1cd50
children
rev   line source
pankso@13365 1 # SliTaz package receipt.
pankso@13365 2
pankso@13365 3 PACKAGE="facter"
pankso@13365 4 VERSION="1.6.11"
pankso@13365 5 CATEGORY="system-tools"
pankso@13365 6 SHORT_DESC="A library for collecting facts about your system."
pankso@13365 7 MAINTAINER="pankso@slitaz.org"
pascal@15215 8 LICENSE="Apache"
pankso@13365 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24893 10 WEB_SITE="https://github.com/puppetlabs/facter"
pascal@25021 11 WGET_URL="https://github.com/puppetlabs/facter/archive/refs/tags/$VERSION.tar.gz"
pankso@13365 12
pankso@13365 13 DEPENDS="ruby"
pankso@13365 14 BUILD_DEPENDS="ruby-dev"
pankso@13365 15
pascal@24439 16 # What is the latest version available today?
pascal@24439 17 current_version()
pascal@24439 18 {
pascal@25603 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@25603 20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24439 21 }
pascal@24439 22
pankso@13365 23 # Rules to configure and make the package.
pankso@13365 24 compile_rules()
pankso@13365 25 {
pascal@21874 26 sed -i "s|require 'tempfile'|&\\nrequire 'test/unit'|" install.rb
pankso@13365 27 ruby ./install.rb \
pankso@13365 28 --destdir=$DESTDIR \
pankso@13365 29 --bindir=/usr/bin \
pankso@13365 30 --sbindir=/usr/sbin
pankso@13365 31 }
pankso@13365 32
pankso@13365 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13365 34 genpkg_rules()
pankso@13365 35 {
pankso@13365 36 mkdir -p $fs/usr
pankso@13365 37 cp -a $install/usr/bin $fs/usr
pankso@13365 38 cp -a $install/usr/lib $fs/usr
pankso@13365 39 }