wok-current rev 7792

Add makeself. Utility to create self-extracting packages. Needed to build virtualbox-ose 4.0.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Dec 24 02:48:32 2010 +0000 (2010-12-24)
parents 9e863d369e88
children 00521e0a4c40
files makeself/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/makeself/receipt	Fri Dec 24 02:48:32 2010 +0000
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="makeself"
     1.7 +VERSION="2.1.5"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Utility to create self-extraction packages."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +WEB_SITE="http://megastep.org/makeself"
    1.12 +WGET="http://megastep.org/makeself/makeself.run"
    1.13 +
    1.14 +# Rules to configure and make the package.
    1.15 +compile_rules()
    1.16 +{
    1.17 +	[ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION ] ||
    1.18 +	wget $WGET -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION
    1.19 +	cd $WOK/$PACKAGE
    1.20 +	/bin/sh $SOURCES_REPOSITORY/$PACKAGE-$VERSION
    1.21 +	cd $src
    1.22 +	mkdir -p $PWD/_pkg/usr/bin
    1.23 +	mkdir -p $PWD/_pkg/usr/share/makeself
    1.24 +	cp -a makeself.sh $PWD/_pkg/usr/bin/makeself
    1.25 +	cp -a makeself-header.sh $PWD/_pkg/usr/share/makeself
    1.26 +	sed -e 's|HEADER=`dirname $0`/makeself-header.sh|HEADER=/usr/share/makeself/makeself-header.sh|' -i $PWD/_pkg/usr/bin/makeself
    1.27 +
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr
    1.34 +	cp -a $_pkg/usr/bin $fs/usr
    1.35 +	cp -a $_pkg/usr/share $fs/usr
    1.36 +}
    1.37 +