wok-4.x view droid-font/receipt @ rev 6411

droid-font: fix git wget
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 25 15:19:07 2010 +0200 (2010-09-25)
parents be04df47d5fe
children a73c94997539
line source
1 # SliTaz package receipt.
3 PACKAGE="droid-font"
4 VERSION="2010-04-09"
5 CATEGORY="x-window"
6 SHORT_DESC="Font family from Google's Android project"
7 MAINTAINER="devl547@gmail.com"
8 WEB_SITE="http://www.droidfonts.com/"
9 # Located in git repo, so we need a snapshot and some dirty hacks.
10 GIT_URL="http://android.git.kernel.org/?p=platform/frameworks/base.git;f=data/fonts;a=snapshot;h=22a27501a220e8f2ea5f9be3312bb0b64e32a71a;sf=tgz"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 [ -s $SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz ] ||
16 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz $GIT_URL
17 tar xzf $SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz
18 mv base $PACKAGE-$VERSION > /dev/null
19 cd $src
20 chmod -x *.ttf
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/fonts/truetype/droid-font
27 cp -a $src/*.ttf $fs/usr/share/fonts/truetype/droid-font
28 }