blob: d08a6897cdb0a2d769f0519d54c863afdd52d7c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
# Maintainer: aksr <aksr at t-com dot me>
pkgname=neatroff-suite-git
pkgver=r493.545147c
pkgrel=1
epoch=
pkgdesc="A complete neatroff typesetting system (neatmkfn, neatroff, neatpost, neateqn, neatrefer and shape)."
arch=('i686' 'x86_64')
url="http://litcave.rudi.ir/"
license=('ISC' 'Lucent Public License')
groups=()
depends=('gsfonts-type1')
makedepends=('git')
optdepends=('troff-git: Port of Plan 9 troff (the preprocessors and the macro packages can be used with neatroff'
'bib2ref: Converts bibtex files to refer databases'
'ref2bib: Converts refer databases to bibtex files'
'nref: Manages document references, it can be used as a troff preprocessor')
checkdepends=()
provides=('neatmkfn' 'neatroff' 'neatpost' 'neateqn' 'neatrefer' 'shape')
conflicts=('neatroff' 'neatroff-git' 'neatmkfn' 'neatmkfn-git'
'neatpost' 'neatpost-git' 'neateqn' 'neateqn-git'
'neatrefer' 'neatrefer-git' 'shape')
replaces=('mktrfn')
backup=()
options=()
changelog=
install=${pkgname%-*}.install
source=("neatmkfn::git+https://github.com/aligrudi/neatmkfn"
"neatroff::git+https://github.com/aligrudi/neatroff"
"neatroff_make::git+https://github.com/aligrudi/neatroff_make"
"neatpost::git+https://github.com/aligrudi/neatpost"
"neateqn::git+https://github.com/aligrudi/neateqn"
"neatrefer::git+https://github.com/aligrudi/neatrefer"
"http://litcave.rudi.ir/shape.tar.gz"
"http://litcave.rudi.ir/neatroff.pdf"
"http://litcave.rudi.ir/neateqn.pdf" tmac.hyph)
noextract=()
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
sha1sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
## Ghostscript Fonts Location:
FP="/usr/share/fonts/Type1/"
## FONTS directory
FDIR=/usr/share/neatroff/font
## MACROS directory
MDIR=/usr/share/neatroff/tmac
## HYPHENATION FILES
HYPH=/usr/share/neatroff/hyph
prepare() {
cd "$srcdir/"
mkdir hyph/ || return 0
LNG=(en-us de-1996 fr es it ru)
LNK="http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/"
for i in "${LNG[@]}"; do
for j in "pat.txt" "hyp.txt" "chr.txt"; do
curl -f -o hyph/hyph-${i}.$j ${LNK}hyph-${i}.$j
done
done
}
pkgver() {
cd $srcdir/neatroff
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/neatmkfn"
make all
mkdir fonts || return 0
## XXX: temporary fix until `gen.sh' is updated
sed -i 's/NimbusSansNarrow-BoldOblique.afm/NimbusSansNarrow-BdOblique.afm/' gen.sh
./gen.sh $FP fonts
sed -i 's|./mkfn|neatmkfn|g' gen.sh
cd $srcdir/neatroff
make all FDIR=$FDIR MDIR=$MDIR
cd $srcdir/neatpost
make all FDIR=$FDIR
cd $srcdir/neateqn
make all
cd $srcdir/neatrefer
make all
cd $srcdir/shape
make all
}
package() {
cd $srcdir/neatmkfn
install -Dm755 mkfn $pkgdir/usr/bin/neatmkfn
install -Dm644 ../neatroff_make/man/neatmkfn.1 $pkgdir/usr/share/man/man1/neatmkfn.1
install -Dm644 gen.sh $pkgdir/usr/share/doc/${pkgname%-*}/gen.sh
install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README.neatmkfn
mkdir -p $pkgdir/usr/share/${pkgname%-*-*}/font/devutf/
cp fonts/* $pkgdir/usr/share/${pkgname%-*-*}/font/devutf/
cd $srcdir/neatroff
install -Dm755 roff $pkgdir/usr/bin/neatroff
install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README
install -Dm644 ../neatroff.pdf $pkgdir/usr/share/doc/${pkgname%-*}/neatroff.pdf
install -Dm644 ../neatroff_make/tmac/NOTICE $pkgdir/usr/share/licenses/${pkgname%-*}/NOTICE
install -Dm644 ../neatroff_make/man/neatroff.1 $pkgdir/usr/share/man/man1/neatroff.1
## copy neatroff macros
mkdir -p $pkgdir/usr/share/${pkgname%-*-*}/tmac/
cp -r ../neatroff_make/tmac/* $pkgdir/usr/share/${pkgname%-*-*}/tmac/
rm -f $pkgdir/usr/share/${pkgname%-*-*}/tmac/NOTICE
cd $srcdir/neatpost
install -Dm755 post $pkgdir/usr/bin/neatpost
install -Dm755 pdf $pkgdir/usr/bin/neatpdf
install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README.neatpost
install -Dm644 ../neatroff_make/man/neatpost.1 $pkgdir/usr/share/man/man1/neatpost.1
cd $srcdir/neateqn
install -Dm755 eqn $pkgdir/usr/bin/neateqn
install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README.neateqn
install -Dm644 ../neateqn.pdf $pkgdir/usr/share/doc/${pkgname%-*}/neateqn.pdf
install -Dm644 ../neatroff_make/man/neateqn.1 $pkgdir/usr/share/man/man1/neateqn.1
cd $srcdir/neatrefer
install -Dm755 refer $pkgdir/usr/bin/neatrefer
install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README.neatrefer
install -Dm644 ../neatroff_make/man/neatrefer.1 $pkgdir/usr/share/man/man1/neatrefer.1
cd $srcdir/shape
install -Dm755 shape $pkgdir/usr/bin/shape
## copy hyphenation files
mkdir -p "$pkgdir/$HYPH"
cp -a $srcdir/hyph/* "$pkgdir/$HYPH"
## copy hyphenation macro file
install -m644 $srcdir/tmac.hyph $pkgdir/$MDIR/tmac.hyph
}
|