wok view larch/receipt @ rev 24985
Add python-future
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 10 07:46:58 2022 +0000 (2022-05-10) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="larch"
4 VERSION="1.1.2"
5 CATEGORY="network"
6 SHORT_DESC="Copies messages from one IMAP server to another."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/rgrove/larch/"
11 WGET_URL="${WEB_SITE}archive/release-$VERSION.tar.gz"
12 TAGS="imap"
14 DEPENDS="ruby"
15 BUILD_DEPENDS="ruby-dev wget"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
27 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" larch
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $install/usr $fs
35 cd $fs/usr
36 ln -s ../$(ls lib/ruby/gems/*/bin/larch) bin
37 }