wok annotate facter/receipt @ rev 25427
updated xapian and xapian-dev (1.4.15 -> 1.4.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 17:00:01 2022 +0100 (2022-08-18) |
parents | eec3edc6ef52 |
children | 5db546345599 |
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@24439 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24439 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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 } |