summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McCarty2015-06-08 20:31:22 -0700
committerPatrick McCarty2015-06-08 20:31:57 -0700
commit84bc2b971e94c34cca88d21945c2bb6d3ff4632a (patch)
treef885088a55270f1704d570d72c2356d1469af5cc
downloadaur-84bc2b971e94c34cca88d21945c2bb6d3ff4632a.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD20
-rw-r--r--ttf-clear-sans.install15
4 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9ad967f5805
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ttf-clear-sans
+ pkgdesc = A versatile OpenType font for screen, print and Web
+ pkgver = 1.00
+ pkgrel = 2
+ url = https://01.org/clear-sans
+ install = ttf-clear-sans.install
+ arch = any
+ license = Apache2
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = https://01.org/sites/default/files/downloads/clearsans-1.00.zip
+ sha256sums = 41809a296870dd7b4753d6532b4093821d61f9806281e6c053ccb11083ad1190
+
+pkgname = ttf-clear-sans
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..dca6aa48a38
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.zip
+*.pkg.tar.xz
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee83ccc38a9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Patrick McCarty <pnorcks at gmail dot com>
+
+pkgname=ttf-clear-sans
+pkgver=1.00
+pkgrel=2
+pkgdesc="A versatile OpenType font for screen, print and Web"
+arch=('any')
+url="https://01.org/clear-sans"
+license=('Apache2')
+depends=('fontconfig' 'xorg-font-utils')
+install="$pkgname.install"
+source=("https://01.org/sites/default/files/downloads/clearsans-${pkgver}.zip")
+sha256sums=('41809a296870dd7b4753d6532b4093821d61f9806281e6c053ccb11083ad1190')
+
+package() {
+ cd "${srcdir}"
+ install -d "${pkgdir}/usr/share/fonts/TTF"
+ install -m644 TTF/*.ttf "${pkgdir}/usr/share/fonts/TTF/"
+ install -Dm644 LICENSE-2.0.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/ttf-clear-sans.install b/ttf-clear-sans.install
new file mode 100644
index 00000000000..d7f2cbc1617
--- /dev/null
+++ b/ttf-clear-sans.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -s
+ mkfontscale usr/share/fonts/TTF
+ mkfontdir usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}