summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlad2015-07-08 15:45:03 +0300
committervlad2015-07-08 15:45:03 +0300
commitd85dcef47ee8a6ee7f3a8759ede8877f6a21dee8 (patch)
tree53317f32cd52da982329a3c1b9077dd74e524c3d
downloadaur-d85dcef47ee8a6ee7f3a8759ede8877f6a21dee8.tar.gz
Initial import
-rw-r--r--.SRCINFO106
-rw-r--r--PKGBUILD95
-rw-r--r--font.install15
3 files changed, 216 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0bd29aa13b76
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,106 @@
+pkgbase = ttf-google-fonts-git
+ pkgdesc = TrueType fonts from the Google Fonts project
+ pkgver = 20150316
+ pkgrel = 1
+ url = https://github.com/google/fonts
+ install = font.install
+ arch = any
+ license = various
+ makedepends = git
+ depends = cantarell-fonts
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-mkfontdir
+ depends = xorg-mkfontscale
+ 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-cantarell
+ provides = ttf-cardo
+ provides = ttf-chromeos-fonts
+ provides = ttf-comfortaa
+ provides = ttf-droid
+ provides = ttf-google-fonts-hg
+ provides = ttf-google-webfonts
+ provides = ttf-google-webfonts-git
+ provides = ttf-google-webfonts-hg
+ provides = ttf-inconsolata
+ provides = ttf-kimberly_geswein_print
+ provides = ttf-lato
+ provides = ttf-lekton
+ provides = ttf-medievalsharp
+ provides = ttf-nova
+ 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-fira-mono
+ provides = ttf-fira-sans
+ 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-cantarell
+ conflicts = ttf-cardo
+ conflicts = ttf-chromeos-fonts
+ conflicts = ttf-comfortaa
+ conflicts = ttf-droid
+ conflicts = ttf-google-fonts-hg
+ conflicts = ttf-google-webfonts
+ conflicts = ttf-google-webfonts-git
+ conflicts = ttf-google-webfonts-hg
+ conflicts = ttf-inconsolata
+ conflicts = ttf-kimberly_geswein_print
+ conflicts = ttf-lato
+ conflicts = ttf-lekton
+ conflicts = ttf-medievalsharp
+ conflicts = ttf-nova
+ 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-fira-mono
+ conflicts = ttf-fira-sans
+ conflicts = ttf-lato
+ source = git://github.com/google/fonts.git
+ md5sums = SKIP
+
+pkgname = ttf-google-fonts-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..e20cae29f1d6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,95 @@
+# Maintainer: Sebastian Stammler <stammler.s@gmail.com>
+#
+# Now pacman 4.1 ready!
+# For improvements/fixes to this package, please send me a
+# pull request on github: https://github.com/sebastianst/aur-packages
+#
+# 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>
+
+pkgname=ttf-google-fonts-git
+pkgver=20150316
+pkgrel=1
+pkgdesc="TrueType fonts from the Google Fonts project"
+arch=('any')
+url="https://github.com/google/fonts"
+license=('various')
+# About why "cantarell-fonts" is a dependency see comment in package() function.
+depends=('cantarell-fonts'
+ 'fontconfig'
+ 'xorg-fonts-encodings'
+ 'xorg-mkfontdir'
+ 'xorg-mkfontscale')
+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-cantarell'
+ 'ttf-cardo'
+ 'ttf-chromeos-fonts'
+ 'ttf-comfortaa'
+ 'ttf-droid'
+ 'ttf-google-fonts-hg'
+ 'ttf-google-webfonts'
+ 'ttf-google-webfonts-git'
+ 'ttf-google-webfonts-hg'
+ 'ttf-inconsolata'
+ 'ttf-kimberly_geswein_print'
+ 'ttf-lato'
+ 'ttf-lekton'
+ 'ttf-medievalsharp'
+ 'ttf-nova'
+ '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-fira-mono'
+ 'ttf-fira-sans'
+ 'ttf-lato')
+provides=("${conflicts[@]}" 'ttf-font')
+source=("git://github.com/google/fonts.git")
+md5sums=('SKIP')
+install=font.install
+
+# 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 Cantarell fonts because Google ships the original Cantarell
+ # instead of the improved version of Cantarell shipped by the GNOME Project
+ #
+ # it is safe to remove "Cantarell-*.ttf" from this dir because the
+ # cantarell-fonts package installs its fonts into /usr/share/fonts/cantarell/
+ # and because cantarell-fonts installs .otf files instead of .ttf files
+ find "${pkgdir}/usr/share/fonts/TTF" -type f -name "Cantarell-*.ttf" -delete
+}
diff --git a/font.install b/font.install
new file mode 100644
index 000000000000..d5a636daedec
--- /dev/null
+++ b/font.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}