wok annotate rubygems/receipt @ rev 24626

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 17:32:18 2022 +0000 (2022-03-07)
parents 9a9ffdd97e40
children 0262035dc1e7
rev   line source
pascal@11565 1 # SliTaz package receipt.
pascal@11565 2
pascal@11565 3 PACKAGE="rubygems"
Hans-G?nter@23627 4 VERSION="3.1.2"
pascal@11565 5 CATEGORY="development"
Hans-G?nter@21854 6 TAGS="ruby"
pascal@11565 7 SHORT_DESC="Ruby packages Manager."
pascal@11565 8 MAINTAINER="pankso@slitaz.org"
pascal@15601 9 LICENSE="MIT"
Hans-G?nter@21854 10 WEB_SITE="https://www.rubygems.org/"
Hans-G?nter@21854 11
pascal@11565 12 TARBALL="$PACKAGE-$VERSION.tgz"
Hans-G?nter@21855 13 WGET_URL="${WEB_SITE}$PACKAGE/$TARBALL"
Hans-G?nter@21854 14
Hans-G?nter@21854 15 DEPENDS="libruby-extras ruby"
Hans-G?nter@21854 16 BUILD_DEPENDS="libruby-extras ruby-dev"
Hans-G?nter@21854 17
pankso@16189 18 HOST_ARCH="i486 arm"
pankso@16189 19 # ARM: ruby-dev libruby-extras build host must be installed
pascal@15601 20
pascal@24545 21 # What is the latest version available today?
pascal@24545 22 current_version()
pascal@24545 23 {
pascal@24545 24 wget -O - https://github.com/rubygems/rubygems/releases 2>/dev/null | \
pascal@24545 25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24545 26 }
pascal@24545 27
pascal@11565 28 # Rules to configure and make the package.
pascal@11565 29 compile_rules()
pascal@11565 30 {
pascal@15601 31 ruby setup.rb --destdir=$DESTDIR
pascal@11565 32 }
pascal@11565 33
pascal@11565 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11565 35 genpkg_rules()
pascal@11565 36 {
pankso@16189 37 mkdir -p $fs/usr
Hans-G?nter@21854 38
Hans-G?nter@23627 39 cp -a $install/usr/lib $fs/usr
Hans-G?nter@23627 40 cp -a $install/usr/bin $fs/usr
pascal@11565 41 }