wok annotate spruz/receipt @ rev 25460
Update sourceforge.net web_sites with https://
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 28 08:10:35 2022 +0000 (2022-09-28) |
parents | 3c1752d57bae |
children |
rev | line source |
---|---|
slaxemulator@10140 | 1 # SliTaz package receipt. |
slaxemulator@10140 | 2 |
slaxemulator@10140 | 3 PACKAGE="spruz" |
Hans-G?nter@23662 | 4 VERSION="0.2.13" |
slaxemulator@10140 | 5 CATEGORY="development" |
Hans-G?nter@23662 | 6 SHORT_DESC="All the stuff that isn't good or big enough for a real library." |
slaxemulator@10140 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15593 | 8 LICENSE="MIT" |
Hans-G?nter@23662 | 9 WEB_SITE="https://rubygems.org/gems/spruz" |
Hans-G?nter@23662 | 10 |
slaxemulator@10140 | 11 TARBALL="$PACKAGE-$VERSION.gem" |
pascal@20669 | 12 WGET_URL="https://rubygems.org/downloads/$TARBALL" |
slaxemulator@10140 | 13 |
pascal@15593 | 14 DEPENDS="ruby" |
pascal@15593 | 15 BUILD_DEPENDS="ruby-dev" |
pascal@15593 | 16 |
Hans-G?nter@23662 | 17 COOK_OPT="!repack_src !unpack" |
Hans-G?nter@23662 | 18 |
pascal@24462 | 19 # What is the latest version available today? |
pascal@24462 | 20 current_version() |
pascal@24462 | 21 { |
pascal@24462 | 22 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24462 | 23 sed '/versions.[0-9]/!d;s|.*sions/||;s|".*||;q' |
pascal@24462 | 24 } |
pascal@24462 | 25 |
slaxemulator@10140 | 26 # Rules to configure and make the package. |
slaxemulator@10140 | 27 compile_rules() |
slaxemulator@10140 | 28 { |
Hans-G?nter@23662 | 29 local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')" |
Hans-G?nter@23662 | 30 gem install \ |
Hans-G?nter@23662 | 31 --ignore-dependencies \ |
Hans-G?nter@23662 | 32 -i "$DESTDIR/$_gemdir" \ |
Hans-G?nter@23662 | 33 $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@10140 | 34 } |
slaxemulator@10140 | 35 |
slaxemulator@10140 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10140 | 37 genpkg_rules() |
slaxemulator@10140 | 38 { |
Hans-G?nter@23662 | 39 cp -a $install/usr $fs |
slaxemulator@10140 | 40 } |