wok-next diff ecm/receipt @ rev 7652

Fixed post_install in virtualbox-ose again.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 15 00:09:43 2010 +0000 (2010-12-15)
parents
children 1dc033b25f22
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ecm/receipt	Wed Dec 15 00:09:43 2010 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ecm"
     1.7 +VERSION="100"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="Converts CD image files into a lossless format optimized for compression tools"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="glibc-base"
    1.12 +BUILD_DEPENDS="unzip"
    1.13 +TARBALL="${PACKAGE}${VERSION}.zip"
    1.14 +WEB_SITE="http://www.neillcorlett.com/ecm/"
    1.15 +WGET="http://www.neillcorlett.com/downloads/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	src=$WOK/$PACKAGE/$PACKAGE-$VERSION
    1.21 +	mkdir -p $src
    1.22 +	cd $src
    1.23 +	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.24 +		unzip $SOURCES_REPOSITORY/$TARBALL
    1.25 +	else
    1.26 +		[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    1.27 +	        wget -O $SOURCES_REPOSITORY/$TARBALL $WGET
    1.28 +		unzip $SOURCES_REPOSITORY/$TARBALL -d $src
    1.29 +	fi
    1.30 +	for i in {,un}ecm; do
    1.31 +		gcc $i.c -o $i 
    1.32 +	done
    1.33 +
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr/bin
    1.40 +	cp -a $src/ecm $fs/usr/bin
    1.41 +	cp -a $src/unecm $fs/usr/bin
    1.42 +}
    1.43 +