blob: 93ae576a104df346ce4c9f321b1db4868b627d84 (
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
|
# Description: Permet la lecture des pages de manuels
# URL: http://savannah.nongnu.org/projects/man-db
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libpipeline
name=man-db
version=2.6.2
release=1
source=(http://savannah.nongnu.org/download/$name/$name-$version.tar.xz)
build() {
cd $name-$version
# glibc 2.16.0 fix
sed -i '/gets is a security hole/d' gnulib/lib/stdio.in.h
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--disable-setuid \
--enable-mb-groff \
--with-browser=/usr/bin/lynx \
--with-col=/usr/bin/col \
--with-vgrind=/usr/bin/vgrind \
--with-grap=/usr/bin/grap
make
make DESTDIR=$PKG install
cat >> convert-mans << "EOF"
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
FILE="$1"
shift
iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
mv .tmp.iconv "$FILE"
done
EOF
install -m755 convert-mans $PKG/usr/bin
}
|