updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / minionpro / PKGBUILD
blob48e72bdf1c502a7b2072fa5442f9198cf49190aa
1 # Maintainer:  Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=minionpro
3 pkgver=2.015
4 pkgrel=4
5 pkgdesc="Myriad and Minion for LaTeX (the not-xeLaTeX way)"
6 url="http://lglinux.blogspot.com/2007/09/myriad-and-minion-for-latex.html"
7 arch=('any')
8 license=('unknown')
9 depends=('texlive-core')
10 makedepends=('unzip')
11 install=minionpro.install
12 source=(ftp://dante.ctan.org/tex-archive/fonts/minionpro/scripts.zip \
13   ftp://dante.ctan.org/tex-archive/fonts/minionpro/enc-2.000.zip \
14   ftp://dante.ctan.org/tex-archive/fonts/minionpro/metrics-base.zip \
15 http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.3/deu/AdobeReader_deu-8.1.3-1.i486.tar.bz2 \
16   ftp://tug.ctan.org/pub/tex-archive/fonts/mnsymbol.zip \
17   http://faq.ktug.or.kr/wiki/uploads/MyriadProAR7.pdf \
18   http://faq.ktug.or.kr/wiki/uploads/MyriadProAR7.zip \
19 http://www.adobe.com/products/eulas/pdfs/Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf#page=78 \
20 $pkgname.maps)
21 md5sums=('ec2cf45336fe2bdbc63e404c72f4eb6e'
22          'ac1e22a5f484b93e60bd84951bab7527'
23          'cf1ba13d39085ae58a7e96a5466bd66e'
24          'c56ad633db07b8a21d222f6d38455940'
25          '5c851f41606ef7dc66c361149018d53b'
26          '24fae0babc3d07eea2c84ddd32ddf1ef'
27          'a183b5a604e7bc4004de9ed9eaba5ce7'
28          '1636037610ee2aa35c5fb736a697b7e0'
29          '37552d5058c9c089591aa936acca959b')
30 noexpand=('enc-2.000.zip' 'metrics-base.zip' 'MyriadProAR7.zip')
32 build() {
33   install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs
34   install -m644 $pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/
35   cd $srcdir/AdobeReader 
36   tar xvf COMMON.TAR 
37   mv Adobe/Reader8/Resource/Font/M*.otf $srcdir/otf
38   cd $srcdir
39   ./convert.sh
40   install -d $pkgdir/usr/share/texmf/fonts/type1/adobe/MinionPro
41   install -d $pkgdir/usr/share/texmf/fonts/type1/adobe/MyriadPro
42   cp pfb/Min*.pfb \
43     $pkgdir/usr/share/texmf/fonts/type1/adobe/MinionPro
44   cp pfb/Myr*.pfb \
45     $pkgdir/usr/share/texmf/fonts/type1/adobe/MyriadPro
46   unzip -quo -d $pkgdir/usr/share/texmf enc-2.000.zip
47   unzip -quo -d $pkgdir/usr/share/texmf metrics-base.zip 
48   cd $srcdir/mnsymbol/tex
49   [ -f MnSymbol.drv ] && rm MnSymbol.drv 
50   [ -f MnSymbol.sty ] && rm MnSymbol.sty 
51   latex MnSymbol.ins 
52   install -Dm644 MnSymbol.sty \
53     $pkgdir/usr/share/texmf/tex/latex/MnSymbol/MnSymbol.sty
54   cd ..
55   install -d $pkgdir/usr/share/texmf/fonts/source/public/MnSymbol 
56   cp -r source/* \
57     $pkgdir/usr/share/texmf/fonts/source/public/MnSymbol
58   for _i in MnSymbol.ps MnSymbol.pdf README
59   do
60     install -Dm644 ${_i} $pkgdir/usr/share/texmf/doc/latex/MnSymbol/${_i}
61   done 
62   sed -i 's+\[++' enc/MnSymbol.map
63   install -Dm644 enc/MnSymbol.map \
64     $pkgdir/usr/share/texmf/fonts/map/dvips/MnSymbol/MnSymbol.map 
65   install -d $pkgdir/usr/share/texmf/fonts/enc/dvips/MnSymbol
66   cp enc/*.enc $pkgdir/usr/share/texmf/fonts/enc/dvips/MnSymbol
67   install -d $pkgdir/usr/share/texmf/fonts/type1/public/MnSymbol 
68   cp pfb/*.pfb \
69     $pkgdir/usr/share/texmf/fonts/type1/public/MnSymbol
70   install -d $pkgdir/usr/share/texmf/fonts/tfm/public/MnSymbol
71   cp tfm/*.tfm \
72     $pkgdir/usr/share/texmf/fonts/tfm/public/MnSymbol
73   [ -d myriad ] || mkdir myriad
74   cd myriad
75   unzip -quo $srcdir/MyriadProAR7.zip 
76   [ -d fonts/tfm/adobe ] && rm -r fonts/tfm/adobe
77   mv fonts/tfm/Adobe fonts/tfm/adobe
78   [ -d fonts/type1/adobe ] && rm -r fonts/type1/adobe
79   mv fonts/type1/Adobe fonts/type1/adobe
80   [ -d fonts/enc ] || mkdir fonts/enc
81   cp -r dvips fonts/enc/
82   rm -r dvips
83   sed -i 's+\[++' fonts/enc/dvips/MyriadPro/MyriadPro.map 
84   install -d $pkgdir/usr/share/texmf/fonts/map/dvips/MyriadPro
85   tr -d "\r" < fonts/enc/dvips/MyriadPro/MyriadPro.map > \
86     $pkgdir/usr/share/texmf/fonts/map/dvips/MyriadPro/MyriadPro.map
87   rm fonts/enc/dvips/MyriadPro/MyriadPro.map 
88   cp -R * $pkgdir/usr/share/texmf 
89   install -Dm644 $srcdir/MyriadProAR7.pdf \
90     $pkgdir/usr/share/texmf/doc/latex/MyriadPro/MyriadPro.pdf
91   sed -i 's+\[++' \
92    $pkgdir/usr/share/texmf/fonts/map/dvips/MinionPro/MinionPro.map
93   chmod o+r $pkgdir/usr/share/texmf/doc/latex/MinionPro/tabfigures.pdf \
94     $pkgdir/usr/share/texmf/doc/latex/MinionPro/fontaxes.pdf \
95     $pkgdir/usr/share/texmf/doc/latex/MinionPro/otfontdef.pdf
96   install -Dm644 \
97     $srcdir/Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf#page=78 \
98     "$pkgdir/usr/share/licenses/$pkgname/license.pdf" 
99   echo done