[SOLVED] Creating a font package for Ooolatex in libreoffice

Dear all,
I would like to pack up a font package for rendering latex equation in Libreoffice.
The relevant fonts are:
http://sourceforge.net/projects/ooolate … urce=files-
containing both ttf and otf fonts.
The aim is to use makepkg -s, pacman -U xxx route instead of copying by hand so that pacman can manage the fonts.
I have to admit that I have no experience in PKGBUILD. And would like some help for the correct PKGBUILD file and ttf-ooolatex.install file.
Here is what I have right now:
depends=('fontconfig' 'xorg-font-utils')
pkgdesc="custom fonts"
source=(./$pkgname) -> I am not sure how to write the source line
  mkdir -p $pkgdir/usr/share/fonts/ooolatex
  cp $srcdir/$pkgname/*.ttf $pkgdir/usr/share/fonts/ooolatex
  cp $srcdir/$pkgname/*.otf $pkgdir/usr/share/fonts/ooolatex
post_install() {
  echo -n "Updating font cache... "
  fc-cache -fs >/dev/null
-> not sure what to do with the mkfontscale and mkfontdirectory
  echo "done"
post_upgrade() {
As you can see, I am trying to copy all fonts to /usr/share/fonts/ooolatex folder and do a
#  fc-cache -vf
in that folder.
Any help on writing the two files are greatly appreciated. Thanks in advance for helping.
For more details about ooolatex in arch linux
I will be adding the relevant instruction once I figure out how to install the fonts using pacman.
Last edited by pokpig (2012-08-14 11:50:19)


I put together a PKGBUILD and .install for you. I'm not positive if it's totally correct and about the depends, but it seems to work. If someone else could look at it first, that would be great.
# Maintainer: pokpig <[email protected]>
pkgdesc="A set of macros to provide latex support in OpenOffice."
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
build () {
cd "$srcdir"
install -d "$pkgdir/usr/share/fonts/TTF"
install -d "$pkgdir/usr/share/doc/$pkgname"
install -m644 *.ttf *.otf "$pkgdir/usr/share/fonts/TTF"
install -m644 README "$pkgdir/usr/share/doc/$pkgname"
and the .install:
# arg 1: the new package version
post_install() {
echo "Updating font cache... "
fc-cache -fs >/dev/null 2>&1
mkfontscale /usr/share/fonts/TTF
mkfontdir /usr/share/fonts/TTF
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
# arg 1: the old package version
post_remove() {
fc-cache -fs >/dev/null 2>&1
mkfontscale /usr/share/fonts/TTF
mkfontdir /usr/share/fonts/TTF
hope that helps

Microsoft TTF Fonts package needed for commercial use in portable application

Hello there i am designing an application in java which is based on being a portable application of pdf converter. My design needs to have the ttf Fonts independently present in the application. Is there any way or agreement to buy the Microsoft ttf

Adobe Reader Font Package Install

Does anyone know how to install a font package for Adobe Reader? I downloaded the DMG file from Adobe's website but not sure of the next step?Reader 11: Adobe - Adobe Reader : For Macintosh : Adobe Reader 11.0.09 Font Packs - Asian and Extended Langu

A font package is requried to correctly display after creating interactive form in livecycle

SO I created a form in acrobat. When I save it, and open it in reader, it opens it fine. But I need to make the fields expandable, so I go to livecycle, and create an interactive form with flowable layout. Once i save it, and open it in reader, it in

How to create a dynamic SSIS package for multiple flat file destinations

Hi, I have to create a ssis package which has single data flow task and inside that I have 23 source (sql- select * from - statements)- destination (flat files, 23 distinct) connection. Now for each product I have to create separate SSIS package (i.e

How to find who has created the determination records for packaging instruc

how to find who has created the determination records for packaging instructions in POF1. need to find the user details from POF3. can any one plz suggets me.Sunny, Go to POF1 click on determined record -> Display -.> enter-> F8 then -> double

How do you create a package for a function?

Hello, Can someone tell me how to create a package for a function? My understanding is to call a function like a beforeReport from the data template, is that the function needs to be in a package. Thanks, SusanCreate package my_pack as my_val varchar

Creating transport package for CRM Business Package

Hi there, I have recently installed the CRM Business Packages 60.2 onto our EP6.0 SP2 server.  I have also performed quite a lot of configuration on the portal e.g. creating new roles, worksets, iviews etc. We have now installed a new EP6 server whic

Pl/sql package for use with workflow will not return a value

hi all, just trying to intercept a requisition being turned into an order if it uses a certain cost code. so i have amended the workflow and created a package to check what cost centre a requisition is using. how over the workflow stops on the functi

[SOLVED] Incorrect / Ugly Fonts in Epiphany Web Browser

Hello everyone. I've done a ton of a searching (here and google) on this subject to no avail. It seems fonts on Facebook / Tumblr as well as some other sites have very incorrectly rendered fonts. I am currently using the freetype2-ubuntu patch and I

Which package for saving a variant of transaction SM30?

Hello, I use SHD0 to create a variant of the transaction SM30. After saving it, I got the dialog to select the package. Z* packages are not allowed, only SAP Packages. Which is the correct package for saving the variant? Best regards, AlexanderI crea

Font Licenses for DPS App folios

I'm trying to get my head around font licenses for DPS apps. When publishing folios in PDF format isn't everything converted to images on export? I've found font licenses that have an app embed option but say that anything part of an "image" doe

Which Nuget Package for Azure Service Bus can I use for Windows Store apps?

Hi, I want to use the Azure Service Bus Topics. I have an app that needs to subscribe to the Service bus Topic. The Nuget-Package for Azure Service Bus is not applicable for Windows Store Apps (I get an error during install), thats why I used the Win

Generated RoboHelp Packager for Adobe Air Errors

Generated RH 8 to AIR 2 help yesterday and it is working. Now I want to package the AIR file for deployment using the RoboHelp Packager for Adobe AIR utility. My Finish Dialog box displays" The Adobe AIR package was not generated". The 1st group

Creating XAI inbound schema for add transaction

Hi friends, I am tring to creating xai inbound service for add transaction using business objects, when i tested that inbound service through dynamic xai i am getting error like this ,would some body suggest me to solve this. Transformation Error com

How to create a custom variable for a Label?

i need my label to store a string variable in it, do you know i can create a custom variable for it. i mean for example if it's name is "StoredString" i can access it in my code by "label1.StoredString" just like "Label1.text"

[Solved]how generate a *.files for pkgfile whit a custom off-line repo

I reated a repo whit repo-add (and options) but I noticed that I cannot get throw manpages a way to create a $repo.files for pkgfile my reppo is on my home for now, I learning how create one,thisis why I ask any 'hiden' or special combination of scri

Font substitution for Times New Roman? Why is Adobe doing this?

I'm using Adobe Acrobat Pro version 9.2 to read pdfs created by a number of different authors. I'm running Windows 7 64 bit OS. These are NOT pdfs I have created. Some of these pdfs display an incorrect font substitution for Times New Roman and I can

Adobe Acrobat 6.0 Standard font Package

All Any body can help me to get Adobe Acrobat 6.0 Standard Font Package?Which is the latest version of Acrobat that you have purchased? If version 6 then 6.06 is the latest free update that you can download. Versions 7, 8, 9, X were all paid-for upgr

Trying to create my own package

So basically, I am trying to create my own package in WIndows. I have created the directory: C:\javaclasses\defnull\array and in that directory all I have is: intcheck.class All the class does is check how large an integer array is. Here is the uncom