wok annotate larch/receipt @ rev 17613

Up: expat 2.1.0
author Alexander Medvedev <devl547@gmail.com>
date Thu Feb 12 19:30:27 2015 +0000 (2015-02-12)
parents
children a0dccc5d133d
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@15193 12
pascal@15193 13 DEPENDS="ruby"
pascal@15193 14 BUILD_DEPENDS="ruby-dev wget"
pascal@15193 15
pascal@15193 16 # Rules to configure and make the package.
pascal@15193 17 compile_rules()
pascal@15193 18 {
pascal@15193 19 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
pascal@15193 20 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" larch
pascal@15193 21 }
pascal@15193 22
pascal@15193 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15193 24 genpkg_rules()
pascal@15193 25 {
pascal@15193 26 mkdir -p $fs/usr/bin
pascal@15193 27 cp -a $install/usr $fs
pascal@15193 28 cd $fs/usr
pascal@15193 29 ln -s ../$(ls lib/ruby/gems/*/bin/larch) bin
pascal@15193 30 }