[notify] groff: groff: don't hard-code papersize setting

the default papersize for groff is no longer determined at build-time but
must be defined in /ect/papersize now. See README for more infomations.
This commit is contained in:
Juergen Daubert 2013-03-04 17:25:42 +01:00
parent 7226c6d9ac
commit 03500f7196
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,5 @@
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/papersize
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/addftinfo

View File

@ -4,7 +4,7 @@
name=groff
version=1.22.2
release=1
release=2
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
@ -25,6 +25,12 @@ build() {
make
make DESTDIR=$PKG install
sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
-i $PKG/usr/share/groff/current/font/*/DESC
install -d $PKG/etc
echo 'letter' > $PKG/etc/papersize
rm -rf $PKG/usr/share/{info,doc}
ln -s eqn $PKG/usr/bin/geqn

14
groff/README Normal file
View File

@ -0,0 +1,14 @@
README for groff
REQUIREMENTS
PRE/POST-INSTALL
as of groff version 1.22.2 release 2 the default papersize for groff can
be defined in /etc/papersize. Just add the required papersize like 'letter'
or 'a4' here, default is 'letter'.
See
http://www.gnu.org/software/groff/manual/html_node/DESC-File-Format.html
for more informations.