wok-6.x annotate activerecord/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | 63fa34c8d2fa |
children |
rev | line source |
---|---|
slaxemulator@10145 | 1 # SliTaz package receipt. |
slaxemulator@10145 | 2 |
slaxemulator@10145 | 3 PACKAGE="activerecord" |
Hans-G?nter@24106 | 4 VERSION="6.1.4.1" |
slaxemulator@10145 | 5 CATEGORY="system-tools" |
Hans-G?nter@22166 | 6 SHORT_DESC="Rich support for multibyte strings." |
slaxemulator@10145 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
Hans-G?nter@22166 | 9 WEB_SITE="https://rubygems.org/gems/activerecord" |
Hans-G?nter@22166 | 10 |
slaxemulator@10145 | 11 TARBALL="$PACKAGE-$VERSION.gem" |
pascal@20668 | 12 WGET_URL="https://rubygems.org/downloads/$TARBALL" |
Hans-G?nter@22166 | 13 |
Hans-G?nter@22166 | 14 DEPENDS="activesupport ruby" |
Hans-G?nter@22166 | 15 BUILD_DEPENDS="ruby-dev" |
Hans-G?nter@22166 | 16 |
slaxemulator@10145 | 17 COOK_OPT="!repack_src !unpack" |
slaxemulator@10145 | 18 |
pascal@24353 | 19 # What is the latest version available today? |
pascal@24353 | 20 current_version() |
pascal@24353 | 21 { |
pascal@24353 | 22 wget -O - $WEB_SITE 2>/dev/null | sed '/versions\//!d;s|.*versions/||;s|".*||;q' |
pascal@24353 | 23 } |
pascal@24353 | 24 |
slaxemulator@10145 | 25 # Rules to configure and make the package. |
slaxemulator@10145 | 26 compile_rules() |
slaxemulator@10145 | 27 { |
Hans-G?nter@22166 | 28 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" |
Hans-G?nter@22166 | 29 gem install \ |
Hans-G?nter@22166 | 30 --ignore-dependencies \ |
Hans-G?nter@22166 | 31 -i "$DESTDIR/$_gemdir" \ |
Hans-G?nter@22166 | 32 $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@10145 | 33 } |
slaxemulator@10145 | 34 |
slaxemulator@10145 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10145 | 36 genpkg_rules() |
slaxemulator@10145 | 37 { |
slaxemulator@13075 | 38 cp -a $install/usr $fs |
Hans-G?nter@22166 | 39 } |