summaryrefslogtreecommitdiffstats
path: root/main/ttf-droid/APKBUILD
blob: 90a44e80be57044515289e0fab462f8d944e34b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ttf-droid
_date="20110607"
pkgver=$_date
pkgrel=0
pkgdesc="Droid font family"
url="http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD"
arch="noarch"
license="Apache 2.0"
depends=
makedepends=
install=
subpackages=
source="http://dev.alpinelinux.org/~ncopa/ttf-droid-$pkgver.tar.gz"
_ttf_source="
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/Ahem.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/Clockopia.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSans-Bold.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSans.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansArabic.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansFallback.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansFallbackLegacy.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansHebrew.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansJapanese.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansMono.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSansThai.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSerif-Bold.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSerif-BoldItalic.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSerif-Italic.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSerif-Regular.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/MTLc3m.ttf;hb=HEAD
	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/MTLmr3m.ttf;hb=HEAD
"

_ttfdir="$srcdir"/ttf-droid-$_date

mkpkg() {
	local i
	mkdir -p "$srcdir"/ttf-droid-$_date
	cd "$srcdir"/ttf-droid-$_date

	for i in $_ttf_source; do
		curl -J -O $i || return 1
	done
	cd ..
	tar -czf ttf-droid-$_date.tar.gz ttf-droid-$_date
}

build() {
	return 0
}

package()
{
	cd "$_ttfdir"
        install -d $pkgdir/usr/share/fonts/TTF/ 
        install -m644 *.ttf $pkgdir/usr/share/fonts/TTF/ 
}

md5sums="b40559c6d6f7e7f39a4e3e27a4fd84c0  ttf-droid-20110607.tar.gz"