wok annotate ruby-native-package-installer/receipt @ rev 24101

lrzip: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 16 16:33:44 2021 +0000 (2021-09-16)
parents 6983626e3f72
children ac8ca9758df1
rev   line source
Hans-G?nter@23626 1 # SliTaz package receipt.
Hans-G?nter@23626 2
Hans-G?nter@23626 3 PACKAGE="ruby-native-package-installer"
Hans-G?nter@23626 4 VERSION="1.0.9"
Hans-G?nter@23626 5 CATEGORY="development"
Hans-G?nter@23626 6 SHORT_DESC="Helper to install native packages on 'gem install'."
Hans-G?nter@23626 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@23626 8 LICENSE="LGPL3"
Hans-G?nter@23626 9 WEB_SITE="https://rubygems.org/gems/native-package-installer"
Hans-G?nter@23626 10
Hans-G?nter@23626 11 SOURCE="native-package-installer"
Hans-G?nter@23626 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23626 13 WGET_URL="https://github.com/ruby-gnome/$SOURCE/archive/$VERSION.tar.gz"
Hans-G?nter@23626 14
Hans-G?nter@23626 15 DEPENDS="ruby"
Hans-G?nter@23626 16 BUILD_DEPENDS="ruby-dev rubygems"
Hans-G?nter@23626 17
Hans-G?nter@23626 18 COOK_OPT="!repack_src !unpack"
Hans-G?nter@23626 19
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 23 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 24 }
pascal@24055 25
Hans-G?nter@23626 26 # Rules to configure and make the package.
Hans-G?nter@23626 27 compile_rules()
Hans-G?nter@23626 28 {
Hans-G?nter@23626 29 local _gemdir="$(ruby -r rubygems -e'puts Gem.default_dir')"
Hans-G?nter@23626 30 gem install \
Hans-G?nter@23626 31 --ignore-dependencies \
Hans-G?nter@23626 32 -i "$DESTDIR/$_gemdir" \
Hans-G?nter@23626 33 native-package-installer
Hans-G?nter@23626 34 }
Hans-G?nter@23626 35
Hans-G?nter@23626 36 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@23626 37 genpkg_rules()
Hans-G?nter@23626 38 {
Hans-G?nter@23626 39 cp -a $install/usr $fs
Hans-G?nter@23626 40 }