wok rev 12754

Up ecm (1.03)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 11 14:55:49 2012 +0200 (2012-05-11)
parents e7dfe8e16bdf
children b7606869e51e
files ecm/receipt
line diff
     1.1 --- a/ecm/receipt	Fri May 11 13:42:55 2012 +0200
     1.2 +++ b/ecm/receipt	Fri May 11 14:55:49 2012 +0200
     1.3 @@ -1,22 +1,24 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="ecm"
     1.7 -VERSION="100"
     1.8 +VERSION="1.03"
     1.9 +SOURCE="cmdpack"
    1.10  CATEGORY="misc"
    1.11  SHORT_DESC="Converts CD image files into a lossless format optimized for compression tools"
    1.12  MAINTAINER="slaxemulator@gmail.com"
    1.13  DEPENDS="glibc-base"
    1.14 -BUILD_DEPENDS="unzip"
    1.15 -TARBALL="${PACKAGE}${VERSION}.zip"
    1.16 +BUILD_DEPENDS=""
    1.17 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    1.18  WEB_SITE="http://www.neillcorlett.com/ecm/"
    1.19  WGET_URL="http://www.neillcorlett.com/downloads/$TARBALL"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24 -	cd $src
    1.25 -	for i in ecm unecm; do
    1.26 -		gcc $i.c -o $i 
    1.27 +	cd $src/src
    1.28 +	for i in *.c; do
    1.29 +		echo "Compile $i..."
    1.30 +		./mkgcc ${i%.c} || return 1
    1.31  	done
    1.32  }
    1.33  
    1.34 @@ -24,7 +26,7 @@
    1.35  genpkg_rules()
    1.36  {
    1.37  	mkdir -p $fs/usr/bin
    1.38 -	cp -a $src/ecm $fs/usr/bin
    1.39 -	cp -a $src/unecm $fs/usr/bin
    1.40 +	cp -a $src/src/ecm $fs/usr/bin
    1.41 +	ln -s ecm $fs/usr/bin/unecm
    1.42  }
    1.43