summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeeti Paananen2015-06-08 21:20:17 +0300
committerVeeti Paananen2015-06-08 21:20:17 +0300
commite0a49967d23499c70c985c0171841da80d66ada9 (patch)
tree3d30bea3a9a452a39535c57a7595d3541a7ca9e0
downloadaur-e0a49967d23499c70c985c0171841da80d66ada9.tar.gz
Initial import
-rw-r--r--.SRCINFO104
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD109
-rw-r--r--ttf-google-fonts-opinionated-git.install15
4 files changed, 232 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2bc7fc46a20
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,104 @@
+pkgbase = ttf-google-fonts-opinionated-git
+ pkgdesc = TrueType fonts from the Google Fonts project
+ pkgver = 20150608
+ pkgrel = 1
+ url = https://github.com/google/fonts
+ install = ttf-google-fonts-opinionated-git.install
+ arch = any
+ license = various
+ makedepends = git
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-mkfontdir
+ depends = xorg-mkfontscale
+ depends = cantarell-fonts
+ depends = ttf-droid
+ depends = ttf-fira-sans
+ depends = ttf-fira-mono
+ depends = ttf-inconsolata
+ provides = adobe-source-code-pro-fonts
+ provides = adobe-source-sans-pro-fonts
+ provides = googlefontdirectory
+ provides = jsmath-fonts
+ provides = lohit-fonts
+ provides = oldstand-font
+ provides = openarch_fonts
+ provides = otf-bitter
+ provides = otf-goudy
+ provides = ttf-andika
+ provides = ttf-anonymous-pro
+ provides = ttf-cardo
+ provides = ttf-chromeos-fonts
+ provides = ttf-comfortaa
+ provides = ttf-google-fonts-git
+ provides = ttf-google-fonts-hg
+ provides = ttf-google-webfonts
+ provides = ttf-google-webfonts-git
+ provides = ttf-google-webfonts-hg
+ provides = ttf-kimberly_geswein_print
+ provides = ttf-lato
+ provides = ttf-lekton
+ provides = ttf-medievalsharp
+ provides = ttf-nova
+ provides = ttf-noto
+ provides = ttf-oldstandard
+ provides = ttf-opensans
+ provides = ttf-oxygen
+ provides = ttf-oxygen-git
+ provides = ttf-ptsans
+ provides = ttf-pt-mono
+ provides = ttf-pt-sans
+ provides = ttf-roboto
+ provides = ttf-sil-fonts
+ provides = ttf-sortsmillgoudy
+ provides = ttf-source-code-pro
+ provides = ttf-source-sans-pro
+ provides = ttf-ubuntu-font-family
+ provides = ttf-vollkorn
+ provides = ttf-lato
+ provides = ttf-font
+ conflicts = adobe-source-code-pro-fonts
+ conflicts = adobe-source-sans-pro-fonts
+ conflicts = googlefontdirectory
+ conflicts = jsmath-fonts
+ conflicts = lohit-fonts
+ conflicts = oldstand-font
+ conflicts = openarch_fonts
+ conflicts = otf-bitter
+ conflicts = otf-goudy
+ conflicts = ttf-andika
+ conflicts = ttf-anonymous-pro
+ conflicts = ttf-cardo
+ conflicts = ttf-chromeos-fonts
+ conflicts = ttf-comfortaa
+ conflicts = ttf-google-fonts-git
+ conflicts = ttf-google-fonts-hg
+ conflicts = ttf-google-webfonts
+ conflicts = ttf-google-webfonts-git
+ conflicts = ttf-google-webfonts-hg
+ conflicts = ttf-kimberly_geswein_print
+ conflicts = ttf-lato
+ conflicts = ttf-lekton
+ conflicts = ttf-medievalsharp
+ conflicts = ttf-nova
+ conflicts = ttf-noto
+ conflicts = ttf-oldstandard
+ conflicts = ttf-opensans
+ conflicts = ttf-oxygen
+ conflicts = ttf-oxygen-git
+ conflicts = ttf-ptsans
+ conflicts = ttf-pt-mono
+ conflicts = ttf-pt-sans
+ conflicts = ttf-roboto
+ conflicts = ttf-sil-fonts
+ conflicts = ttf-sortsmillgoudy
+ conflicts = ttf-source-code-pro
+ conflicts = ttf-source-sans-pro
+ conflicts = ttf-ubuntu-font-family
+ conflicts = ttf-vollkorn
+ conflicts = ttf-lato
+ source = git://github.com/google/fonts.git
+ md5sums = SKIP
+
+pkgname = ttf-google-fonts-opinionated-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..eae5d89c2a3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar*
+fonts/
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..043a60c6426
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,109 @@
+# Maintainer: Veeti Paananen <veeti.paananen@rojekti.fi>
+# Contributor: Sebastian Stammler <stammler.s@gmail.com>
+# Contributor: Sarkasper <echo a2FzcGVyLm1lbnRlbkBnbXguY29tCg== | base64 -d>
+# Contributor: Daniel Micay <danielmicay@gmail.com>
+# Contributor: Michalis Georgiou <mechmg93@gmail.comr>
+# Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
+
+# This package is a version of ttf-google-fonts-git that makes opinionated
+# exclusions for certain fonts in the Google repository that are outdated or
+# otherwise unsuitable (bugs, etc.) Their individual packages are included as
+# dependencies instead. A list of excluded fonts is below.
+
+# Cantarell: Google ships an outdated version compared to the cantarell-fonts
+# package.
+
+# Droid: the ttf-droid package includes more variants.
+
+# Fira Sans & Fira Mono: Google ships an outdated and buggy version.
+# https://github.com/google/fonts/issues/10
+
+# Inconsolata: Google ships a modified version.
+
+pkgname=ttf-google-fonts-opinionated-git
+pkgver=20150608
+pkgrel=1
+pkgdesc="TrueType fonts from the Google Fonts project"
+arch=('any')
+url="https://github.com/google/fonts"
+license=('various')
+depends=('fontconfig'
+ 'xorg-fonts-encodings'
+ 'xorg-mkfontdir'
+ 'xorg-mkfontscale'
+
+ 'cantarell-fonts'
+ 'ttf-droid'
+ 'ttf-fira-sans'
+ 'ttf-fira-mono'
+ 'ttf-inconsolata')
+makedepends=('git')
+conflicts=('adobe-source-code-pro-fonts'
+ 'adobe-source-sans-pro-fonts'
+ 'googlefontdirectory'
+ 'jsmath-fonts'
+ 'lohit-fonts'
+ 'oldstand-font'
+ 'openarch_fonts'
+ 'otf-bitter'
+ 'otf-goudy'
+ 'ttf-andika'
+ 'ttf-anonymous-pro'
+ 'ttf-cardo'
+ 'ttf-chromeos-fonts'
+ 'ttf-comfortaa'
+ 'ttf-google-fonts-git'
+ 'ttf-google-fonts-hg'
+ 'ttf-google-webfonts'
+ 'ttf-google-webfonts-git'
+ 'ttf-google-webfonts-hg'
+ 'ttf-kimberly_geswein_print'
+ 'ttf-lato'
+ 'ttf-lekton'
+ 'ttf-medievalsharp'
+ 'ttf-nova'
+ 'ttf-noto'
+ 'ttf-oldstandard'
+ 'ttf-opensans'
+ 'ttf-oxygen'
+ 'ttf-oxygen-git'
+ 'ttf-ptsans'
+ 'ttf-pt-mono'
+ 'ttf-pt-sans'
+ 'ttf-roboto'
+ 'ttf-sil-fonts'
+ 'ttf-sortsmillgoudy'
+ 'ttf-source-code-pro'
+ 'ttf-source-sans-pro'
+ 'ttf-ubuntu-font-family'
+ 'ttf-vollkorn'
+ 'ttf-lato')
+provides=("${conflicts[@]}" 'ttf-font')
+source=("git://github.com/google/fonts.git")
+md5sums=('SKIP')
+install=ttf-google-fonts-opinionated-git.install
+
+# xz compression is very slow for a large font package. Using gzip is much
+# faster with only around ~50 megabytes in added size.
+PKGEXT='.pkg.tar.gz'
+
+# git variables
+_gitname="fonts"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git log -1 --format="%cd" --date=short | sed 's|-||g'
+}
+
+package() {
+ cd "$srcdir"
+ install -dm755 "$pkgdir/usr/share/fonts/TTF"
+ find . -type f -name \*.ttf -exec install -Dm644 '{}' \
+ "$pkgdir/usr/share/fonts/TTF" \;
+
+ # Remove excluded fonts.
+ find "${pkgdir}/usr/share/fonts/" -type f -name "Cantarell-*.ttf" -delete
+ find "${pkgdir}/usr/share/fonts/" -type f -name "Droid*.ttf" -delete
+ find "${pkgdir}/usr/share/fonts/" -type f -name "Fira*.ttf" -delete
+ find "${pkgdir}/usr/share/fonts/" -type f -name "Inconsolata-*.ttf" -delete
+}
diff --git a/ttf-google-fonts-opinionated-git.install b/ttf-google-fonts-opinionated-git.install
new file mode 100644
index 00000000000..4220cead68e
--- /dev/null
+++ b/ttf-google-fonts-opinionated-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs > /dev/null 2>&1
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}