# HG changeset patch # User Pascal Bellard # Date 1285420747 -7200 # Node ID cdcf0ac21191e90c7d1ae15117145d83687642bc # Parent 30b41f655c26bc8625b14859a328fdf695f9409a droid-font: fix git wget diff -r 30b41f655c26 -r cdcf0ac21191 droid-font/receipt --- a/droid-font/receipt Sat Sep 25 14:51:35 2010 +0200 +++ b/droid-font/receipt Sat Sep 25 15:19:07 2010 +0200 @@ -7,12 +7,14 @@ MAINTAINER="devl547@gmail.com" WEB_SITE="http://www.droidfonts.com/" # Located in git repo, so we need a snapshot and some dirty hacks. -TARBALL="fonts;a=snapshot;h=22a27501a220e8f2ea5f9be3312bb0b64e32a71a;sf=tgz" -WGET_URL="http://android.git.kernel.org/?p=platform/frameworks/base.git;f=data/fonts;a=snapshot;h=22a27501a220e8f2ea5f9be3312bb0b64e32a71a;sf=tgz" +GIT_URL="http://android.git.kernel.org/?p=platform/frameworks/base.git;f=data/fonts;a=snapshot;h=22a27501a220e8f2ea5f9be3312bb0b64e32a71a;sf=tgz" # Rules to configure and make the package. compile_rules() { + [ -s $SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz ] || + wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz $GIT_URL + tar xzf $SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz mv base $PACKAGE-$VERSION > /dev/null cd $src chmod -x *.ttf