# HG changeset patch # User Pascal Bellard # Date 1285423317 -7200 # Node ID a73c94997539ecf5f3628452c26c1dc0c4066ddb # Parent cdcf0ac21191e90c7d1ae15117145d83687642bc droid-font: cosmetics diff -r cdcf0ac21191 -r a73c94997539 droid-font/receipt --- a/droid-font/receipt Sat Sep 25 15:19:07 2010 +0200 +++ b/droid-font/receipt Sat Sep 25 16:01:57 2010 +0200 @@ -2,27 +2,28 @@ PACKAGE="droid-font" VERSION="2010-04-09" +GIT_HASH=22a27501a220e8f2ea5f9be3312bb0b64e32a71a CATEGORY="x-window" SHORT_DESC="Font family from Google's Android project" MAINTAINER="devl547@gmail.com" WEB_SITE="http://www.droidfonts.com/" # Located in git repo, so we need a snapshot and some dirty hacks. -GIT_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=$GIT_HASH;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 + TARFILE=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz + [ -s $TARFILE ] || wget -O $TARFILE $GIT_URL + tar xzf $TARFILE mv base $PACKAGE-$VERSION > /dev/null - cd $src - chmod -x *.ttf } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/fonts/truetype/droid-font - cp -a $src/*.ttf $fs/usr/share/fonts/truetype/droid-font + dir=$fs/usr/share/fonts/truetype/droid-font + mkdir -p $dir + cp -a $src/*.ttf $dir + chmod -x $dir/*.ttf }