wok view larch/receipt @ rev 15193

Add larch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 30 11:24:48 2013 +0000 (2013-08-30)
parents
children a0dccc5d133d
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"
13 DEPENDS="ruby"
14 BUILD_DEPENDS="ruby-dev wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
20 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" larch
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 cp -a $install/usr $fs
28 cd $fs/usr
29 ln -s ../$(ls lib/ruby/gems/*/bin/larch) bin
30 }