wok-next annotate larch/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | b6771e9696d7 |
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@15193 | 12 |
pascal@15193 | 13 DEPENDS="ruby" |
al@20513 | 14 BUILD_DEPENDS="ruby-dev" |
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 } |