# HG changeset patch # User Pascal Bellard # Date 1336740949 -7200 # Node ID 1f49cc79cf1cfbfee64b0217ec2b64a5dd463163 # Parent e7dfe8e16bdf06366e03b64ae7e5975e1c7a9c21 Up ecm (1.03) diff -r e7dfe8e16bdf -r 1f49cc79cf1c ecm/receipt --- a/ecm/receipt Fri May 11 13:42:55 2012 +0200 +++ b/ecm/receipt Fri May 11 14:55:49 2012 +0200 @@ -1,22 +1,24 @@ # SliTaz package receipt. PACKAGE="ecm" -VERSION="100" +VERSION="1.03" +SOURCE="cmdpack" CATEGORY="misc" SHORT_DESC="Converts CD image files into a lossless format optimized for compression tools" MAINTAINER="slaxemulator@gmail.com" DEPENDS="glibc-base" -BUILD_DEPENDS="unzip" -TARBALL="${PACKAGE}${VERSION}.zip" +BUILD_DEPENDS="" +TARBALL="$SOURCE-$VERSION-src.tar.gz" WEB_SITE="http://www.neillcorlett.com/ecm/" WGET_URL="http://www.neillcorlett.com/downloads/$TARBALL" # Rules to configure and make the package. compile_rules() { - cd $src - for i in ecm unecm; do - gcc $i.c -o $i + cd $src/src + for i in *.c; do + echo "Compile $i..." + ./mkgcc ${i%.c} || return 1 done } @@ -24,7 +26,7 @@ genpkg_rules() { mkdir -p $fs/usr/bin - cp -a $src/ecm $fs/usr/bin - cp -a $src/unecm $fs/usr/bin + cp -a $src/src/ecm $fs/usr/bin + ln -s ecm $fs/usr/bin/unecm }