wok view larch/receipt @ rev 24061

Add lz4ultra
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 12 09:05:17 2021 +0000 (2021-06-12)
parents a0dccc5d133d
children ac8ca9758df1
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*}/releases 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 }