summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchala2015-06-08 10:00:08 -0700
committerSchala2015-06-08 10:00:08 -0700
commit844f8198d72ff824cd5ee565e62accbf6b7b59f6 (patch)
tree8bbf2dfe3495aaa8339977d7b17fba356fc6258a
downloadaur-equestria-fonts.tar.gz
init
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD21
-rw-r--r--equestria-fonts.install14
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b92c97da35e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = equestria-fonts
+ pkgdesc = Based on the package logos for Hasbro's My Little Pony Line. Includes full alphabet, extended characters and punctuation, and Euro.
+ pkgver = 20140909
+ pkgrel = 1
+ url = http://www.dafont.com/equestria.font
+ install = equestria-fonts.install
+ arch = any
+ license = custom:Pixel Sagas Freeware Fonts
+ depends = fontconfig
+ depends = xorg-font-utils
+ provides = ttf-equestria
+ conflicts = ttf-equestria
+ replaces = ttf-equestria
+ source = equestria.zip::http://img.dafont.com/dl/?f=equestria
+ md5sums = 5cbfa71684abbfd0c901e16ad931c628
+
+pkgname = equestria-fonts
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5e6fe8a7b68
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+pkgname=equestria-fonts
+pkgver=20140909
+pkgrel=1
+pkgdesc="Based on the package logos for Hasbro's My Little Pony Line. Includes full alphabet, extended characters and punctuation, and Euro."
+arch=(any)
+url="http://www.dafont.com/equestria.font"
+license=("custom:Pixel Sagas Freeware Fonts")
+depends=(fontconfig xorg-font-utils)
+source=("equestria.zip::http://img.dafont.com/dl/?f=equestria")
+md5sums=('5cbfa71684abbfd0c901e16ad931c628')
+provides=(ttf-equestria)
+conflicts=(ttf-equestria)
+replaces=(ttf-equestria)
+install="$pkgname.install"
+
+package()
+{
+ cd "$srcdir"
+ find . -name '*.otf' -exec install -Dm644 {} "$pkgdir/usr/share/fonts/OTF/"{} \;
+ install -Dm644 "$srcdir/Font License.txt" "$pkgdir/usr/share/licenses/equestria-fonts/Font License.txt"
+}
diff --git a/equestria-fonts.install b/equestria-fonts.install
new file mode 100644
index 00000000000..46a2f95fffd
--- /dev/null
+++ b/equestria-fonts.install
@@ -0,0 +1,14 @@
+post_install()
+{
+ echo -n "Updating font cache... "
+ fc-cache -fs >/dev/null
+ mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1
+ mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1
+ echo "done"
+}
+
+post_upgrade()
+{
+ post_install
+}
+