wok-next view perl-core/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents 2d12ebd38be4
children 6fab3264ba87
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-core"
4 VERSION="5.12.3"
5 CATEGORY="development"
6 SHORT_DESC="Minimal Perl interpreter."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="perl"
10 WANTED="perl"
11 WEB_SITE="http://www.perl.org/"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/bin
18 cp -a $install/usr/bin/perl${VERSION} $fs/usr/bin/
19 cd $fs/usr/bin
20 ln -s perl${VERSION} perl
21 }
23 # Pre install commands for Tazpkg.
24 # Remove perl link to microperl if any.
25 #
26 pre_install()
27 {
28 echo "Processing pre-install commands..."
29 rm -f "$1/usr/bin/perl"
30 }