summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordonGR2015-06-08 14:13:07 +0300
committerGordonGR2015-06-08 14:13:07 +0300
commit86b691506df8f597bad3bac5c2a36d180f5e8c89 (patch)
tree4a0aa53157415c2d55957c611865ee9db1b47f89
downloadaur-86b691506df8f597bad3bac5c2a36d180f5e8c89.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD23
-rw-r--r--otf-asana-math.install11
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..ca9fefe8c09b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = otf-asana-math
+ pkgdesc = A font to typeset maths in Xe(La)TeX and Lua(La)TeX by Apostolos Syropoulos
+ pkgver = 000.955
+ pkgrel = 1
+ url = http://www.ctan.org/pkg/asana-math
+ install = otf-asana-math.install
+ arch = any
+ license = Custom: OFL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = ftp://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/fonts/Asana-Math/Asana-Math.otf
+ source = http://scripts.sil.org/cms/scripts/render_download.php?&format=file&media_id=OFL_plaintext&filename=OFL.txt
+ md5sums = 211fab1e4aab4e3464cc99cefc1e80ce
+ md5sums = 6ed93967ff0dc6dd9c8d31c17f817a06
+
+pkgname = otf-asana-math
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..4bb0c117dfbb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: GordonGR <gordongr@freemail.gr>
+pkgname=otf-asana-math
+pkgver=000.955
+pkgrel=1
+license=('Custom: OFL')
+depends=('fontconfig' 'xorg-font-utils')
+pkgdesc="A font to typeset maths in Xe(La)TeX and Lua(La)TeX by Apostolos Syropoulos"
+arch=('any')
+url="http://www.ctan.org/pkg/asana-math"
+source=("ftp://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/fonts/Asana-Math/Asana-Math.otf"
+"http://scripts.sil.org/cms/scripts/render_download.php?&format=file&media_id=OFL_plaintext&filename=OFL.txt")
+md5sums=('211fab1e4aab4e3464cc99cefc1e80ce'
+ '6ed93967ff0dc6dd9c8d31c17f817a06')
+install=$pkgname.install
+
+package()
+{
+mkdir -p $pkgdir/usr/share/fonts/OTF
+cp *.otf $pkgdir/usr/share/fonts/OTF
+mkdir -p $pkgdir/usr/share/licenses/custom/otf-asana-math/
+mv 'render_download.php?&format=file&media_id=OFL_plaintext&filename=OFL.txt' LICENSE
+cp LICENSE $pkgdir/usr/share/licenses/custom/otf-asana-math/
+}
diff --git a/otf-asana-math.install b/otf-asana-math.install
new file mode 100644
index 000000000000..3e159ae5c12e
--- /dev/null
+++ b/otf-asana-math.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs >/dev/null
+ mkfontscale /usr/share/fonts/OTF /usr/share/fonts/Type1
+ mkfontdir /usr/share/fonts/OTF /usr/share/fonts/Type1
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}