INSTALL="install  -o  root  -g  root"                      &&
Q_DIR="/usr/share/qcad"                                    &&

cd  ${SOURCE_DIRECTORY}/qcad                               &&

${INSTALL}  -m755  -d  ${Q_DIR}                            &&
${INSTALL}  -m755  -d  ${Q_DIR}/data                       &&
${INSTALL}  -m755  -d  ${Q_DIR}/fonts                      &&
${INSTALL}  -m755  -d  ${Q_DIR}/library                    &&
${INSTALL}  -m755  -d  ${Q_DIR}/machines                   &&
${INSTALL}  -m755  -d  ${Q_DIR}/patterns                   &&
${INSTALL}  -m755  -d  ${Q_DIR}/scripts                    &&

${INSTALL}  -m644  data/*               ${Q_DIR}/data      &&
${INSTALL}  -m644  fonts/*              ${Q_DIR}/fonts     &&
${INSTALL}  -m644  library/misc/*       ${Q_DIR}/library   &&
${INSTALL}  -m644  library/templates/*  ${Q_DIR}/library   &&
${INSTALL}  -m644  machines/*           ${Q_DIR}/machines  &&
${INSTALL}  -m644  patterns/*           ${Q_DIR}/patterns  &&
${INSTALL}  -m644  scripts/python/*     ${Q_DIR}/scripts   &&
${INSTALL}  -m644  scripts/qsa/*        ${Q_DIR}/scripts   &&
${INSTALL}  -m755  qcad                 /usr/bin           &&

cd  ..                                                     &&
cp  -r  partlibrary-${P_VERSION}  ${Q_DIR}/libraries       &&
chown  -R  root.root  ${Q_DIR}
