diff options
author | Oliver Giles | 2015-07-23 21:22:37 +0200 |
---|---|---|
committer | Oliver Giles | 2015-07-23 21:22:37 +0200 |
commit | 0e5b3f3e0f13bade93efa30a1cafabfb54416047 (patch) | |
tree | 465fcef7b3b3be182cbc5ab6d47dc39128bae68e | |
download | aur-0e5b3f3e0f13bade93efa30a1cafabfb54416047.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | texlive-culmus.install | 33 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4dd995cf6a29 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = texlive-culmus + pkgdesc = Hebrew fonts from the Culmus project for LaTeX + pkgver = 0.7.1 + pkgrel = 2 + url = http://www.guyrutenberg.com/culmus-latex/ + install = texlive-culmus.install + arch = any + license = GPL2 + license = custom:culmus + depends = texlive-core + conflicts = culmus-latex + source = http://downloads.sourceforge.net/project/ivritex/culmus-latex/culmus-latex-0.7/culmus-latex-0.7-r1.tar.gz + md5sums = 0c6f6d5b9e7a0d6ba59fc55680ed48a5 + +pkgname = texlive-culmus + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c1cb641ab21c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=texlive-culmus +pkgver=0.7.1 +pkgrel=2 +pkgdesc="Hebrew fonts from the Culmus project for LaTeX" +arch=('any') +license=('GPL2' 'custom:culmus') +url=("http://www.guyrutenberg.com/culmus-latex/") +depends=(texlive-core) +install=$pkgname.install +conflicts=(culmus-latex) +source=("http://downloads.sourceforge.net/project/ivritex/culmus-latex/culmus-latex-0.7/culmus-latex-0.7-r1.tar.gz") +md5sums=('0c6f6d5b9e7a0d6ba59fc55680ed48a5') + +package() { + cd $srcdir/culmus-latex-0.7-r1 + TEXDIST=usr/share/texmf-dist + for dir in \ + tex/generic/0babel/ \ + tex/latex/culmus/ \ + fonts/enc/dvips/culmus/ \ + fonts/map/dvips/ \ + fonts/tfm/public/culmus/ \ + fonts/afm/public/culmus/ \ + fonts/vf/public/culmus/ \ + fonts/type1/public/culmus/; do + install -d $pkgdir/$TEXDIST/$dir + install -m644 usr/share/texmf/$dir/* $pkgdir/$TEXDIST/$dir + done; + install -D -m 644 LICENSE-Culmus "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-Culmus" +} + diff --git a/texlive-culmus.install b/texlive-culmus.install new file mode 100644 index 000000000000..6936a6fb6d09 --- /dev/null +++ b/texlive-culmus.install @@ -0,0 +1,33 @@ +UPDMAP="/etc/texmf/web2c/updmap.cfg" +UPDMAPLOCAL="/etc/texmf/web2c/updmap-local.cfg" + +post_install() { + echo ">> Running mktexlsr" + mktexlsr + # also save the map definition to the local cfg file + # so it survives an update of a package that regenerates + # the main config file, like texlive-fontsextra + if ! grep -q "^Map culmus.map$" $UPDMAPLOCAL 2>/dev/null; then + echo "Map culmus.map" >> $UPDMAPLOCAL + fi + # this adds it to the main cfg file $UPDMAP + echo ">> Running updmap-sys" + updmap-sys --quiet --enable Map=culmus.map +} + +post_upgrade() { + echo ">> Running mktexlsr" + mktexlsr +} + +post_remove() { + echo ">> Running mktexlsr" + mktexlsr + # remove it from the local file + sed '/^Map culmus.map$/d' -i $UPDMAPLOCAL + # remove it from the main file and regenerate + sed '/^Map culmus.map$/d' -i $UPDMAP + echo ">> Running updmap-sys" + updmap-sys --quiet +} + |