wok view makeself/receipt @ rev 9121

cndrvcups-common: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 05 16:49:29 2011 +0100 (2011-03-05)
parents
children 61e9a91fcb83
line source
1 # SliTaz package receipt.
3 PACKAGE="makeself"
4 VERSION="2.1.5"
5 CATEGORY="development"
6 SHORT_DESC="Utility to create self-extraction packages."
7 MAINTAINER="slaxemulator@gmail.com"
8 WEB_SITE="http://megastep.org/makeself"
9 WGET="http://megastep.org/makeself/makeself.run"
11 # Rules to configure and make the package.
12 compile_rules()
13 {
14 [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION ] ||
15 wget $WGET -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION
16 cd $WOK/$PACKAGE
17 /bin/sh $SOURCES_REPOSITORY/$PACKAGE-$VERSION
18 cd $src
19 mkdir -p $PWD/_pkg/usr/bin
20 mkdir -p $PWD/_pkg/usr/share/makeself
21 cp -a makeself.sh $PWD/_pkg/usr/bin/makeself
22 cp -a makeself-header.sh $PWD/_pkg/usr/share/makeself
23 sed -e 's|HEADER=`dirname $0`/makeself-header.sh|HEADER=/usr/share/makeself/makeself-header.sh|' -i $PWD/_pkg/usr/bin/makeself
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/share $fs/usr
33 }