libpaper: don't write a /etc/papersize by default

this was copied from Arch, but the parsing code doesn't understand
empty lines and comment lines, so I'm not sure how that is supposed to work.
This led to the default papersize being the comment line which makes
the lookup fail, and in combination with xpdf not checking any return values
results in xpdf crashing.
This commit is contained in:
Christoph Reiter
2023-07-17 09:19:24 +02:00
parent bcf7057d41
commit afd3ceb085

View File

@@ -53,8 +53,4 @@ check() {
package() {
cd "${srcdir}"/build-${CARCH}
make install DESTDIR="${pkgdir}"
# add systemwide default papersize read by many office applications
install -dm 755 ${pkgdir}${MINGW_PREFIX}/etc
echo '# Simply write the paper name. See papersize(5) for possible values' > ${pkgdir}${MINGW_PREFIX}/etc/papersize
}