wok annotate droid-font/receipt @ rev 8243

Up: slitaz-base-files 4.1.2, tazpkg 4.2.3
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Jan 28 23:10:49 2011 +0100 (2011-01-28)
parents cdcf0ac21191
children df1ebc56392f
rev   line source
devl547@6090 1 # SliTaz package receipt.
devl547@6090 2
devl547@6090 3 PACKAGE="droid-font"
devl547@6090 4 VERSION="2010-04-09"
pascal@6412 5 GIT_HASH=22a27501a220e8f2ea5f9be3312bb0b64e32a71a
devl547@6090 6 CATEGORY="x-window"
devl547@6090 7 SHORT_DESC="Font family from Google's Android project"
devl547@6090 8 MAINTAINER="devl547@gmail.com"
devl547@6090 9 WEB_SITE="http://www.droidfonts.com/"
devl547@6090 10 # Located in git repo, so we need a snapshot and some dirty hacks.
pascal@6412 11 GIT_URL="http://android.git.kernel.org/?p=platform/frameworks/base.git;f=data/fonts;a=snapshot;h=$GIT_HASH;sf=tgz"
devl547@6090 12
devl547@6090 13 # Rules to configure and make the package.
devl547@6090 14 compile_rules()
devl547@6090 15 {
pascal@6412 16 TARFILE=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tgz
pascal@6412 17 [ -s $TARFILE ] || wget -O $TARFILE $GIT_URL
pascal@6412 18 tar xzf $TARFILE
devl547@6090 19 mv base $PACKAGE-$VERSION > /dev/null
devl547@6090 20 }
devl547@6090 21
devl547@6090 22 # Rules to gen a SliTaz package suitable for Tazpkg.
devl547@6090 23 genpkg_rules()
devl547@6090 24 {
pascal@6412 25 dir=$fs/usr/share/fonts/truetype/droid-font
pascal@6412 26 mkdir -p $dir
pascal@6412 27 cp -a $src/*.ttf $dir
pascal@6412 28 chmod -x $dir/*.ttf
devl547@6090 29 }