abinfo "Generating and installing manpages..."
install -dv "$PKGDIR/usr/share/man/man1"
LD_LIBRARY_PATH=bin ./bin/wkhtmltopdf --manpage \
    > "$PKGDIR/usr/share/man/man1/wkhtmltopdf.1"
LD_LIBRARY_PATH=bin ./bin/wkhtmltoimage --manpage \
    > "$PKGDIR/usr/share/man/man1/wkhtmltoimage.1"

abinfo "Moving header files to the correct location..."
mv -v "$PKGDIR"/{,usr/}include

abinfo "Moving executables to the correct location..."
mv -v "$PKGDIR"/{,usr/}bin

abinfo "Moving libraries to the correct location..."
mv -v "$PKGDIR"/{,usr/}lib

abinfo "Removing redundant manpages..."
rm -rv "$PKGDIR"/share
