# Install config file for PHP. mkdir -p $PKG/etc/php.d cat $CWD/post-install/graphviz/graphviz.ini > $PKG/etc/php.d/graphviz.ini.new # Remove empty directories of language bindings that are absent. find $PKG/usr/lib${LIBDIRSUFFIX}/graphviz -depth -type d -empty -exec rmdir {} \; # Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz so that it # will be removed when the package is uninstalled. This file is generated by # the postinstall script and contains information about available plugins, so # this is (or at least should be) safe. # # Write some dummy content to it to avoid # "Error: /usr/lib64/graphviz/config6 is zero sized, or other read error." # message during installation. echo '# Dummy content.' > $PKG/usr/lib${LIBDIRSUFFIX}/graphviz/config6