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}/examples              &&
${INSTALL}  -m755  -d  ${Q_DIR}/fonts                 &&
${INSTALL}  -m755  -d  ${Q_DIR}/patterns              &&
${INSTALL}  -m755  -d  ${Q_DIR}/qm                    &&
${INSTALL}  -m755  -d  ${Q_DIR}/scripts               &&
${INSTALL}  -m644  examples/*  ${Q_DIR}/examples      &&
${INSTALL}  -m644  fonts/*  ${Q_DIR}/fonts            &&
${INSTALL}  -m644  patterns/*  ${Q_DIR}/patterns      &&
${INSTALL}  -m644  qm/*  ${Q_DIR}/qm                  &&
${INSTALL}  -m755  qcad  /usr/bin                     &&

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

