1 # Maintainer: Dan Serban
6 pkgdesc="Convert .txt to .pdf"
10 depends=(abiword ghostscript)
14 mkdir -p "$pkgdir/usr/bin"
15 USRBINFILE="$pkgdir/usr/bin/abipdf"
16 echo '#!/bin/bash' > "$USRBINFILE"
17 echo '_tempfile=$(mktemp -u)' >> "$USRBINFILE"
18 echo 'abiword --to=ps --to-name="${_tempfile}" "${1}"' >> "$USRBINFILE"
19 echo 'ps2pdf "${_tempfile}" "${1}.pdf"' >> "$USRBINFILE"
20 echo 'rm "${_tempfile}"' >> "$USRBINFILE"
21 chmod +x "$USRBINFILE"