summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriĆ  Arrufat2015-07-15 19:47:30 +0200
committerAdriĆ  Arrufat2015-07-15 19:47:30 +0200
commit67be90b999f265b794b3744775ece3bb90b025ce (patch)
treea90825baf8f75e3df7c0194ffacd8f5fde5dff4b
downloadaur-67be90b999f265b794b3744775ece3bb90b025ce.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD22
-rw-r--r--ttf-latex-xft-fonts.install16
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c44fe1f4c62
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ttf-latex-xft-fonts
+ pkgdesc = LaTeX ttf fonts needed by Abiword to display formulas
+ pkgver = 0.1
+ pkgrel = 1
+ url = http://movementarian.org/
+ install = ttf-latex-xft-fonts.install
+ arch = any
+ license = custom
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-font-utils
+ source = http://movementarian.org/latex-xft-fonts-0.1.tar.gz
+ sha1sums = 50edf35ff08354bdf08517add33e16ee37f769e9
+
+pkgname = ttf-latex-xft-fonts
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aeb980463bb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Contributor: Adria Arrufat <swiftscythe at gmail dot com>
+
+pkgname=ttf-latex-xft-fonts
+pkgver=0.1
+pkgrel=1
+pkgdesc="LaTeX ttf fonts needed by Abiword to display formulas"
+arch=(any)
+url="http://movementarian.org/"
+license=(custom)
+groups=()
+depends=(fontconfig xorg-fonts-encodings xorg-font-utils)
+install=$pkgname.install
+
+source=("http://movementarian.org/latex-xft-fonts-${pkgver}.tar.gz")
+sha1sums=('50edf35ff08354bdf08517add33e16ee37f769e9')
+
+package() {
+ mkdir -p "${pkgdir}/usr/share/fonts/TTF/"
+ cd ${srcdir}/latex-xft-fonts-${pkgver}
+ install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF/"
+}
+# vim:set ts=2 sw=2 et:
diff --git a/ttf-latex-xft-fonts.install b/ttf-latex-xft-fonts.install
new file mode 100644
index 00000000000..7d26d0c2aaf
--- /dev/null
+++ b/ttf-latex-xft-fonts.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+