# SliTaz package receipt. PACKAGE="droid-font" VERSION="2010-04-09" GIT_HASH=22a27501a220e8f2ea5f9be3312bb0b64e32a71a CATEGORY="fonts" SHORT_DESC="Font family from Google's Android project" MAINTAINER="devl547@gmail.com" LICENSE="Apache" WEB_SITE="https://android.googlesource.com/" # Located in git repo, so we need a snapshot and some dirty hacks. TARBALL="$PACKAGE-$VERSION.tgz" WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL" BUILD_DEPENDS="wget" # What is the latest version available today? current_version() { wget -O - https://github.com/aosp-mirror/platform_frameworks_base/commits/master 2>/dev/null | \ sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y-%m-%d -d } # Rules to configure and make the package. # Keep an empty compile_rules to make tazwok install build depends. compile_rules() { : } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { dir=$fs/usr/share/fonts/truetype/droid-font mkdir -p $dir cp -a $src/*.ttf $dir chmod -x $dir/*.ttf }