wok annotate larch/receipt @ rev 25070

created recipe for alsa-utils-lang
author Hans-G?nter Theisgen
date Sat Jun 11 08:40:38 2022 +0100 (2022-06-11)
parents 5ea0ce1cecc0
children
rev   line source
pascal@15193 1 # SliTaz package receipt.
pascal@15193 2
pascal@15193 3 PACKAGE="larch"
pascal@15193 4 VERSION="1.1.2"
pascal@15193 5 CATEGORY="network"
pascal@15193 6 SHORT_DESC="Copies messages from one IMAP server to another."
pascal@15193 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15193 8 LICENSE="GPL2"
pascal@15193 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15193 10 WEB_SITE="https://github.com/rgrove/larch/"
pascal@15193 11 WGET_URL="${WEB_SITE}archive/release-$VERSION.tar.gz"
pascal@24055 12 TAGS="imap"
pascal@15193 13
pascal@15193 14 DEPENDS="ruby"
pascal@15193 15 BUILD_DEPENDS="ruby-dev wget"
pascal@15193 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@15193 23 # Rules to configure and make the package.
pascal@15193 24 compile_rules()
pascal@15193 25 {
pascal@22170 26 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
pascal@15193 27 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" larch
pascal@15193 28 }
pascal@15193 29
pascal@15193 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15193 31 genpkg_rules()
pascal@15193 32 {
pascal@15193 33 mkdir -p $fs/usr/bin
pascal@15193 34 cp -a $install/usr $fs
pascal@15193 35 cd $fs/usr
pascal@15193 36 ln -s ../$(ls lib/ruby/gems/*/bin/larch) bin
pascal@15193 37 }