diff options
author | Justin Settle | 2015-06-08 09:37:54 -0400 |
---|---|---|
committer | Justin Settle | 2015-06-08 09:37:54 -0400 |
commit | 39200ac7cd4c1242c010b1033605fa56588301f2 (patch) | |
tree | 16c565e2b7a2bc2a968f24a3cf2cbb8106a01b91 | |
download | aur-39200ac7cd4c1242c010b1033605fa56588301f2.tar.gz |
Initial AUR4 Import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | 30-0-carlito.conf | 18 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | ttf.install | 16 |
4 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d93ab95775dd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ttf-carlito + pkgdesc = Googles Carlito font + pkgver = 20130920 + pkgrel = 1 + url = https://code.google.com/p/chromium/issues/detail?id=280557 + install = ttf.install + arch = any + license = custom:OFL + depends = fontconfig + depends = xorg-fonts-encodings + depends = xorg-font-utils + provides = ttf-font + source = http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-20130920.tar.gz + source = 30-0-carlito.conf + md5sums = c74b7223abe75949b4af367942d96c7a + md5sums = 175d57bd2f40045df180a7dc18e2d513 + +pkgname = ttf-carlito + diff --git a/30-0-carlito.conf b/30-0-carlito.conf new file mode 100644 index 000000000000..44ccc5454553 --- /dev/null +++ b/30-0-carlito.conf @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> +<fontconfig> + <!-- Carlito / Calibri --> + <alias binding="same"> + <family>Carlito</family> + <accept> + <family>Calibri</family> + </accept> + </alias> + <alias binding="same"> + <family>Calibri</family> + <default> + <family>Carlito</family> + </default> + </alias> +</fontconfig> + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34f1c84a9f61 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Justin Settle <jus10 at partlycloudy dot org> + +pkgname=ttf-carlito +pkgver=20130920 +pkgrel=1 +pkgdesc='Googles Carlito font' +arch=('any') +license=('custom:OFL') +url='https://code.google.com/p/chromium/issues/detail?id=280557' +depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils') +provides=('ttf-font') +install=ttf.install +source=("http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-$pkgver.tar.gz" + 30-0-carlito.conf) +md5sums=('c74b7223abe75949b4af367942d96c7a' + '175d57bd2f40045df180a7dc18e2d513') + +package() { + cd "$srcdir/crosextrafonts-carlito-$pkgver" + + install -d "$pkgdir/usr/share/fonts/TTF/" + install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF/" + + # install fontconfig files + install -Dm0644 ../30-0-carlito.conf "$pkgdir/etc/fonts/conf.avail/30-carlito.conf" + + # install license + install -Dm644 "${srcdir}/crosextrafonts-carlito-$pkgver/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/ttf.install b/ttf.install new file mode 100644 index 000000000000..7d26d0c2aafa --- /dev/null +++ b/ttf.install @@ -0,0 +1,16 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + |