### cheating to get them all in one place
cd $SOURCE_DIRECTORY/mozilla/security/nss &&
make_normal              &&
make $MAKE_OPTS install             &&

# copy NSS configuration info
install --mode=644 $SCRIPT_DIRECTORY/mozilla-nss.pc $INSTALL_ROOT/usr/lib/pkgconfig/ &&
sedit  "s/VERSION/$VERSION/"  $INSTALL_ROOT/usr/lib/pkgconfig/mozilla-nss.pc         &&

# copy header files
install -d --mode=755 $INSTALL_ROOT/usr/include/nss &&
find lib -type f -name '*.h' | while read __HEADER; do
  install --mode=644 $__HEADER $INSTALL_ROOT/usr/include/nss/
done &&

# there's going to be only one of these directories
#cd $(find .. -maxdepth 1 -type d -name 'Linux*.OBJ' | head -n 1) &&
cd $SOURCE_DIRECTORY/Linux*.OBJ             &&

# manually do the real install
cd bin                                      &&
install --mode=755 * $INSTALL_ROOT/usr/bin/ &&
cd ../lib                                   &&
install --mode=755 * $INSTALL_ROOT/usr/lib/
